forked from openlp/openlp
change log usage
This commit is contained in:
parent
eda3e9ebe0
commit
c4e6e91c81
@ -637,7 +637,7 @@ class BibleUpgradeForm(OpenLPWizard):
|
|||||||
else:
|
else:
|
||||||
language_id = self.newbibles[number].get_language(name)
|
language_id = self.newbibles[number].get_language(name)
|
||||||
if not language_id:
|
if not language_id:
|
||||||
log.error(u'Upgrading from "%s" failed' % filename[0])
|
log.warn(u'Upgrading from "%s" failed' % filename[0])
|
||||||
delete_database(self.path,
|
delete_database(self.path,
|
||||||
clean_filename(self.newbibles[number].get_name()))
|
clean_filename(self.newbibles[number].get_name()))
|
||||||
del self.newbibles[number]
|
del self.newbibles[number]
|
||||||
@ -661,7 +661,7 @@ class BibleUpgradeForm(OpenLPWizard):
|
|||||||
book_ref_id = self.newbibles[number].\
|
book_ref_id = self.newbibles[number].\
|
||||||
get_book_ref_id_by_name(book, len(books), language_id)
|
get_book_ref_id_by_name(book, len(books), language_id)
|
||||||
if not book_ref_id:
|
if not book_ref_id:
|
||||||
log.error(u'Upgrading books from %s - download '\
|
log.warn(u'Upgrading books from %s - download '\
|
||||||
u'name: "%s" aborted by user' % (
|
u'name: "%s" aborted by user' % (
|
||||||
meta_data[u'download source'],
|
meta_data[u'download source'],
|
||||||
meta_data[u'download name']))
|
meta_data[u'download name']))
|
||||||
@ -696,7 +696,7 @@ class BibleUpgradeForm(OpenLPWizard):
|
|||||||
if not language_id:
|
if not language_id:
|
||||||
language_id = self.newbibles[number].get_language(name)
|
language_id = self.newbibles[number].get_language(name)
|
||||||
if not language_id:
|
if not language_id:
|
||||||
log.error(u'Upgrading books from "%s" failed' % name)
|
log.warn(u'Upgrading books from "%s" failed' % name)
|
||||||
delete_database(self.path,
|
delete_database(self.path,
|
||||||
clean_filename(self.newbibles[number].get_name()))
|
clean_filename(self.newbibles[number].get_name()))
|
||||||
del self.newbibles[number]
|
del self.newbibles[number]
|
||||||
@ -722,7 +722,7 @@ class BibleUpgradeForm(OpenLPWizard):
|
|||||||
get_book_ref_id_by_name(book[u'name'], len(books),
|
get_book_ref_id_by_name(book[u'name'], len(books),
|
||||||
language_id)
|
language_id)
|
||||||
if not book_ref_id:
|
if not book_ref_id:
|
||||||
log.error(u'Upgrading books from %s " '\
|
log.warn(u'Upgrading books from %s " '\
|
||||||
'failed - aborted by user' % name)
|
'failed - aborted by user' % name)
|
||||||
delete_database(self.path,
|
delete_database(self.path,
|
||||||
clean_filename(self.newbibles[number].get_name()))
|
clean_filename(self.newbibles[number].get_name()))
|
||||||
@ -734,7 +734,7 @@ class BibleUpgradeForm(OpenLPWizard):
|
|||||||
book_ref_id, book_details[u'testament_id'])
|
book_ref_id, book_details[u'testament_id'])
|
||||||
verses = oldbible.get_verses(book[u'id'])
|
verses = oldbible.get_verses(book[u'id'])
|
||||||
if not verses:
|
if not verses:
|
||||||
log.error(u'No verses found to import for book '
|
log.warn(u'No verses found to import for book '
|
||||||
u'"%s"', book[u'name'])
|
u'"%s"', book[u'name'])
|
||||||
self.newbibles[number].delete_book(db_book)
|
self.newbibles[number].delete_book(db_book)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user