Cleanup and import fix

This commit is contained in:
Jon Tibble 2010-06-22 16:09:49 +01:00
parent 43a4eaed96
commit d9d976d64b
2 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,8 @@ from sqlalchemy import Column, ForeignKey, or_, Table, types
from sqlalchemy.orm import class_mapper, mapper, relation
from sqlalchemy.orm.exc import UnmappedClassError
from openlp.core.lib.db import BaseModel, init_db, Manager, translate
from openlp.core.lib import translate
from openlp.core.lib.db import BaseModel, init_db, Manager
log = logging.getLogger(__name__)

View File

@ -86,10 +86,10 @@ class CustomMediaItem(MediaManagerItem):
def loadCustomListView(self, list):
self.ListView.clear()
for CustomSlide in list:
custom_name = QtGui.QListWidgetItem(CustomSlide.title)
for customSlide in list:
custom_name = QtGui.QListWidgetItem(customSlide.title)
custom_name.setData(
QtCore.Qt.UserRole, QtCore.QVariant(CustomSlide.id))
QtCore.Qt.UserRole, QtCore.QVariant(customSlide.id))
self.ListView.addItem(custom_name)
def onNewClick(self):