forked from openlp/openlp
more cleanups
This commit is contained in:
parent
74432f93e2
commit
5af820b7cd
@ -68,7 +68,6 @@ class FormattingTags(object):
|
|||||||
tag[element] = tag[element].encode('utf8')
|
tag[element] = tag[element].encode('utf8')
|
||||||
# Formatting Tags were also known as display tags.
|
# Formatting Tags were also known as display tags.
|
||||||
Settings().setValue(u'formattingTags/html_tags', json.dumps(tags) if tags else u'')
|
Settings().setValue(u'formattingTags/html_tags', json.dumps(tags) if tags else u'')
|
||||||
Settings().setValue(u'formattingTags/html_tags_json', True)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def load_tags():
|
def load_tags():
|
||||||
|
@ -367,8 +367,8 @@ class BSExtract(object):
|
|||||||
The version of the Bible like NIV for New International Version
|
The version of the Bible like NIV for New International Version
|
||||||
"""
|
"""
|
||||||
log.debug(u'BSExtract.get_books_from_http("%s")', version)
|
log.debug(u'BSExtract.get_books_from_http("%s")', version)
|
||||||
urlversion = urllib.quote(version.encode("utf-8"))
|
url_version = urllib.quote(version.encode("utf-8"))
|
||||||
chapter_url = u'http://m.bibleserver.com/overlay/selectBook?translation=%s' % (urlversion)
|
chapter_url = u'http://m.bibleserver.com/overlay/selectBook?translation=%s' % (url_version)
|
||||||
soup = get_soup_for_bible_ref(chapter_url)
|
soup = get_soup_for_bible_ref(chapter_url)
|
||||||
if not soup:
|
if not soup:
|
||||||
return None
|
return None
|
||||||
@ -611,9 +611,8 @@ class HTTPBible(BibleDB):
|
|||||||
if show_error:
|
if show_error:
|
||||||
critical_error_message_box(
|
critical_error_message_box(
|
||||||
translate('BiblesPlugin', 'No Book Found'),
|
translate('BiblesPlugin', 'No Book Found'),
|
||||||
translate('BiblesPlugin', 'No matching '
|
translate('BiblesPlugin', 'No matching book could be found in this Bible. Check that you have '
|
||||||
'book could be found in this Bible. Check that you '
|
'spelled the name of the book correctly.'))
|
||||||
'have spelled the name of the book correctly.'))
|
|
||||||
return []
|
return []
|
||||||
book = db_book.name
|
book = db_book.name
|
||||||
if BibleDB.get_verse_count(self, book_id, reference[1]) == 0:
|
if BibleDB.get_verse_count(self, book_id, reference[1]) == 0:
|
||||||
@ -742,13 +741,10 @@ def send_error_message(error_type):
|
|||||||
if error_type == u'download':
|
if error_type == u'download':
|
||||||
critical_error_message_box(
|
critical_error_message_box(
|
||||||
translate('BiblesPlugin.HTTPBible', 'Download Error'),
|
translate('BiblesPlugin.HTTPBible', 'Download Error'),
|
||||||
translate('BiblesPlugin.HTTPBible', 'There was a '
|
translate('BiblesPlugin.HTTPBible', 'There was a problem downloading your verse selection. Please check '
|
||||||
'problem downloading your verse selection. Please check your '
|
'your Internet connection, and if this error continues to occur please consider reporting a bug.'))
|
||||||
'Internet connection, and if this error continues to occur '
|
|
||||||
'please consider reporting a bug.'))
|
|
||||||
elif error_type == u'parse':
|
elif error_type == u'parse':
|
||||||
critical_error_message_box(
|
critical_error_message_box(
|
||||||
translate('BiblesPlugin.HTTPBible', 'Parse Error'),
|
translate('BiblesPlugin.HTTPBible', 'Parse Error'),
|
||||||
translate('BiblesPlugin.HTTPBible', 'There was a '
|
translate('BiblesPlugin.HTTPBible', 'There was a problem extracting your verse selection. If this error '
|
||||||
'problem extracting your verse selection. If this error continues '
|
'continues to occur please consider reporting a bug.'))
|
||||||
'to occur please consider reporting a bug.'))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user