forked from openlp/openlp
Whitespace and unused variable
This commit is contained in:
parent
9d6d6f4ac9
commit
83354166da
@ -181,7 +181,7 @@ class BibleManager(object):
|
|||||||
Returns a list of the names of available Bibles.
|
Returns a list of the names of available Bibles.
|
||||||
"""
|
"""
|
||||||
log.debug(u'get_bibles')
|
log.debug(u'get_bibles')
|
||||||
return [name for name, bible in self.db_cache.iteritems()]
|
return self.db_cache.keys()
|
||||||
|
|
||||||
def get_books(self, bible):
|
def get_books(self, bible):
|
||||||
"""
|
"""
|
||||||
|
@ -460,10 +460,14 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
if bible2:
|
if bible2:
|
||||||
bible2_verses = []
|
bible2_verses = []
|
||||||
for scripture in self.lastReference:
|
for scripture in self.lastReference:
|
||||||
bible2_verses.extend(self.parent.manager.get_verses(bible2, scripture))
|
bible2_verses.extend(self.parent.manager.get_verses(bible2,
|
||||||
bible2_version = self.parent.manager.get_meta_data(bible2, u'Version')
|
scripture))
|
||||||
bible2_copyright = self.parent.manager.get_meta_data(bible2, u'Copyright')
|
bible2_version = self.parent.manager.get_meta_data(bible2,
|
||||||
bible2_permission = self.parent.manager.get_meta_data(bible2, u'Permissions')
|
u'Version')
|
||||||
|
bible2_copyright = self.parent.manager.get_meta_data(bible2,
|
||||||
|
u'Copyright')
|
||||||
|
bible2_permission = self.parent.manager.get_meta_data(bible2,
|
||||||
|
u'Permissions')
|
||||||
if bible2_version:
|
if bible2_version:
|
||||||
bible2_version = bible2_version.value
|
bible2_version = bible2_version.value
|
||||||
else:
|
else:
|
||||||
@ -491,25 +495,30 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
copyright = self._decodeQtObject(reference, 'copyright')
|
copyright = self._decodeQtObject(reference, 'copyright')
|
||||||
permission = self._decodeQtObject(reference, 'permission')
|
permission = self._decodeQtObject(reference, 'permission')
|
||||||
if self.parent.settings_tab.display_style == 1:
|
if self.parent.settings_tab.display_style == 1:
|
||||||
verse_text = self.formatVerse(old_chapter, chapter, verse, u'(u', u')')
|
verse_text = self.formatVerse(old_chapter, chapter, verse,
|
||||||
|
u'(u', u')')
|
||||||
elif self.parent.settings_tab.display_style == 2:
|
elif self.parent.settings_tab.display_style == 2:
|
||||||
verse_text = self.formatVerse(old_chapter, chapter, verse, u'{', u'}')
|
verse_text = self.formatVerse(old_chapter, chapter, verse,
|
||||||
|
u'{', u'}')
|
||||||
elif self.parent.settings_tab.display_style == 3:
|
elif self.parent.settings_tab.display_style == 3:
|
||||||
verse_text = self.formatVerse(old_chapter, chapter, verse, u'[', u']')
|
verse_text = self.formatVerse(old_chapter, chapter, verse,
|
||||||
|
u'[', u']')
|
||||||
else:
|
else:
|
||||||
verse_text = self.formatVerse(old_chapter, chapter, verse, u'', u'')
|
verse_text = self.formatVerse(old_chapter, chapter, verse,
|
||||||
|
u'', u'')
|
||||||
old_chapter = chapter
|
old_chapter = chapter
|
||||||
footer = u'%s (%s %s)' % (book, version, copyright)
|
footer = u'%s (%s %s)' % (book, version, copyright)
|
||||||
#If not found add to footer
|
#If not found add to footer
|
||||||
if footer not in raw_footer:
|
if footer not in raw_footer:
|
||||||
raw_footer.append(footer)
|
raw_footer.append(footer)
|
||||||
if bible2:
|
if bible2:
|
||||||
footer = u'%s (%s %s)' % (book, bible2_version, bible2_copyright)
|
footer = u'%s (%s %s)' % (book, bible2_version,
|
||||||
|
bible2_copyright)
|
||||||
#If not found add second version and copyright to footer
|
#If not found add second version and copyright to footer
|
||||||
if footer not in raw_footer:
|
if footer not in raw_footer:
|
||||||
raw_footer.append(footer)
|
raw_footer.append(footer)
|
||||||
bible_text = u'%s %s \n\n %s %s' % \
|
bible_text = u'%s %s \n\n %s %s' % (verse_text, text,
|
||||||
(verse_text, text, verse_text, bible2_verses[item.row()].text)
|
verse_text, bible2_verses[item.row()].text)
|
||||||
raw_slides.append(bible_text)
|
raw_slides.append(bible_text)
|
||||||
bible_text = u''
|
bible_text = u''
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user