forked from openlp/openlp
Head
This commit is contained in:
commit
a66b582484
@ -285,7 +285,7 @@ class BibleManager(object):
|
|||||||
Does a verse search for the given bible and text.
|
Does a verse search for the given bible and text.
|
||||||
|
|
||||||
``bible``
|
``bible``
|
||||||
The bible to seach in (unicode).
|
The bible to search in (unicode).
|
||||||
|
|
||||||
``second_bible``
|
``second_bible``
|
||||||
The second bible (unicode). We do not search in this bible.
|
The second bible (unicode). We do not search in this bible.
|
||||||
@ -294,6 +294,15 @@ class BibleManager(object):
|
|||||||
The text to search for (unicode).
|
The text to search for (unicode).
|
||||||
"""
|
"""
|
||||||
log.debug(u'BibleManager.verse_search("%s", "%s")', bible, text)
|
log.debug(u'BibleManager.verse_search("%s", "%s")', bible, text)
|
||||||
|
if not bible:
|
||||||
|
Receiver.send_message(u'openlp_information_message', {
|
||||||
|
u'title': translate('BiblesPlugin.BibleManager',
|
||||||
|
'No Bibles Available'),
|
||||||
|
u'message': translate('BiblesPlugin.BibleManager',
|
||||||
|
'There are no Bibles currently installed. Please use the '
|
||||||
|
'Import Wizard to install one or more Bibles.')
|
||||||
|
})
|
||||||
|
return None
|
||||||
# Check if the bible or second_bible is a web bible.
|
# Check if the bible or second_bible is a web bible.
|
||||||
webbible = self.db_cache[bible].get_object(BibleMeta,
|
webbible = self.db_cache[bible].get_object(BibleMeta,
|
||||||
u'download source')
|
u'download source')
|
||||||
|
Loading…
Reference in New Issue
Block a user