openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #14963
[Merge] lp:~googol/openlp/bibles into lp:openlp
Andreas Preikschat has proposed merging lp:~googol/openlp/bibles into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~googol/openlp/bibles/+merge/100333
Hello,
Just a few trivial clean ups.
--
https://code.launchpad.net/~googol/openlp/bibles/+merge/100333
Your team OpenLP Core is requested to review the proposed merge of lp:~googol/openlp/bibles into lp:openlp.
=== modified file 'openlp/plugins/bibles/lib/manager.py'
--- openlp/plugins/bibles/lib/manager.py 2012-03-04 20:10:17 +0000
+++ openlp/plugins/bibles/lib/manager.py 2012-04-01 13:23:25 +0000
@@ -293,7 +293,7 @@
- Genesis 1:1-10,15-20
- Genesis 1:1-2:10
- Genesis 1:1-10,2:1-10
-
+
``book_ref_id``
Unicode. The book referece id from the book in versetext.
For second bible this is necessary.
=== modified file 'openlp/plugins/bibles/lib/mediaitem.py'
--- openlp/plugins/bibles/lib/mediaitem.py 2012-03-31 13:30:06 +0000
+++ openlp/plugins/bibles/lib/mediaitem.py 2012-04-01 13:23:25 +0000
@@ -242,9 +242,9 @@
self.addSearchFields(u'advanced', UiStrings().Advanced)
# Combo Boxes
QtCore.QObject.connect(self.quickVersionComboBox,
- QtCore.SIGNAL(u'activated(int)'), self.onQuickVersionComboBox)
+ QtCore.SIGNAL(u'activated(int)'), self.updateAutoCompleter)
QtCore.QObject.connect(self.quickSecondComboBox,
- QtCore.SIGNAL(u'activated(int)'), self.onQuickSecondComboBox)
+ QtCore.SIGNAL(u'activated(int)'), self.updateAutoCompleter)
QtCore.QObject.connect(self.advancedVersionComboBox,
QtCore.SIGNAL(u'activated(int)'), self.onAdvancedVersionComboBox)
QtCore.QObject.connect(self.advancedSecondComboBox,
@@ -379,12 +379,11 @@
bibles = self.plugin.manager.get_bibles().keys()
bibles.sort(cmp=locale.strcoll)
# Load the bibles into the combo boxes.
- for bible in bibles:
- if bible:
- self.quickVersionComboBox.addItem(bible)
- self.quickSecondComboBox.addItem(bible)
- self.advancedVersionComboBox.addItem(bible)
- self.advancedSecondComboBox.addItem(bible)
+ tmp_bibles = [bible for bible in bibles if bible]
+ self.quickVersionComboBox.addItems(tmp_bibles)
+ self.quickSecondComboBox.addItems(tmp_bibles)
+ self.advancedVersionComboBox.addItems(tmp_bibles)
+ self.advancedSecondComboBox.addItems(tmp_bibles)
# set the default value
bible = QtCore.QSettings().value(
self.settingsSection + u'/advanced bible',
@@ -522,12 +521,6 @@
books.sort(cmp=locale.strcoll)
add_widget_completer(books, self.quickSearchEdit)
- def onQuickVersionComboBox(self):
- self.updateAutoCompleter()
-
- def onQuickSecondComboBox(self):
- self.updateAutoCompleter()
-
def onImportClick(self):
if not hasattr(self, u'import_wizard'):
self.import_wizard = BibleImportForm(self, self.plugin.manager,
@@ -996,8 +989,7 @@
# last verse of the chapter or the current verse is not the
# first one of the chapter.
return True
- else:
- return False
+ return False
def formatVerse(self, old_chapter, chapter, verse):
"""
Follow ups