small changes

This commit is contained in:
Armin Köhler 2011-05-02 20:20:38 +02:00
parent 3eca8f6b50
commit b9204fa62b
2 changed files with 7 additions and 7 deletions

View File

@ -333,13 +333,10 @@ class BibleDB(QtCore.QObject, Manager):
if BiblesResourcesDB.get_book(book, True): if BiblesResourcesDB.get_book(book, True):
book_temp = BiblesResourcesDB.get_book(book, True) book_temp = BiblesResourcesDB.get_book(book, True)
book_id = book_temp[u'id'] book_id = book_temp[u'id']
elif BiblesResourcesDB.get_alternative_book_name(book, language_id): elif BiblesResourcesDB.get_alternative_book_name(book):
book_id = BiblesResourcesDB.get_alternative_book_name(book, book_id = BiblesResourcesDB.get_alternative_book_name(book)
language_id) elif AlternativeBookNamesDB.get_book_reference_id(book):
elif AlternativeBookNamesDB.get_book_reference_id(book, book_id = AlternativeBookNamesDB.get_book_reference_id(book)
language_id):
book_id = AlternativeBookNamesDB.get_book_reference_id(
book, language_id)
else: else:
from openlp.plugins.bibles.forms import BookNameForm from openlp.plugins.bibles.forms import BookNameForm
book_ref = None book_ref = None
@ -569,6 +566,9 @@ class BiblesResourcesDB(QtCore.QObject, Manager):
``name`` ``name``
The name or abbreviation of the book. The name or abbreviation of the book.
``lower``
True if the comparsion should be only lowercase
""" """
log.debug(u'BiblesResourcesDB.get_book("%s")', name) log.debug(u'BiblesResourcesDB.get_book("%s")', name)
if not isinstance(name, unicode): if not isinstance(name, unicode):