openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #14598
[Merge] lp:~trb143/openlp/bug-955738 into lp:openlp
Tim Bentley has proposed merging lp:~trb143/openlp/bug-955738 into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
Bug #955738 in OpenLP: "Remote Search displays UI error messages if there is an error"
https://bugs.launchpad.net/openlp/+bug/955738
For more details, see:
https://code.launchpad.net/~trb143/openlp/bug-955738/+merge/97585
Fix web searches for bibles
--
https://code.launchpad.net/~trb143/openlp/bug-955738/+merge/97585
Your team OpenLP Core is requested to review the proposed merge of lp:~trb143/openlp/bug-955738 into lp:openlp.
=== added directory '.idea'
=== added directory '.idea/inspectionProfiles'
=== added file '.idea/inspectionProfiles/profiles_settings.xml'
--- .idea/inspectionProfiles/profiles_settings.xml 1970-01-01 00:00:00 +0000
+++ .idea/inspectionProfiles/profiles_settings.xml 2012-03-15 08:44:20 +0000
@@ -0,0 +1,7 @@
+<component name="InspectionProjectProfileManager">
+ <settings>
+ <option name="PROJECT_PROFILE" />
+ <option name="USE_PROJECT_PROFILE" value="false" />
+ <version value="1.0" />
+ </settings>
+</component>
\ No newline at end of file
=== modified file 'openlp/core/lib/mediamanageritem.py'
--- openlp/core/lib/mediamanageritem.py 2012-03-04 14:52:09 +0000
+++ openlp/core/lib/mediamanageritem.py 2012-03-15 08:44:20 +0000
@@ -641,7 +641,7 @@
if item:
self.autoSelectId = item.data(QtCore.Qt.UserRole).toInt()[0]
- def search(self, string):
+ def search(self, string, showError=True):
"""
Performs a plugin specific search for items containing ``string``
"""
=== modified file 'openlp/plugins/bibles/lib/mediaitem.py'
--- openlp/plugins/bibles/lib/mediaitem.py 2012-03-04 21:50:32 +0000
+++ openlp/plugins/bibles/lib/mediaitem.py 2012-03-15 08:44:20 +0000
@@ -1025,12 +1025,13 @@
return u'{su}[%s]{/su}' % verse_text
return u'{su}%s{/su}' % verse_text
- def search(self, string):
+ def search(self, string, showError):
"""
Search for some Bible verses (by reference).
"""
bible = unicode(self.quickVersionComboBox.currentText())
- search_results = self.plugin.manager.get_verses(bible, string, False)
+ search_results = self.plugin.manager.get_verses(bible, string, False,
+ showError)
if search_results:
versetext = u' '.join([verse.text for verse in search_results])
return [[string, versetext]]
=== modified file 'openlp/plugins/custom/lib/mediaitem.py'
--- openlp/plugins/custom/lib/mediaitem.py 2012-03-04 14:52:09 +0000
+++ openlp/plugins/custom/lib/mediaitem.py 2012-03-15 08:44:20 +0000
@@ -267,7 +267,7 @@
self.searchTextEdit.clear()
self.onSearchTextButtonClick()
- def search(self, string):
+ def search(self, string, showError):
search_results = self.manager.get_all_objects(CustomSlide,
or_(func.lower(CustomSlide.title).like(u'%' +
string.lower() + u'%'),
=== modified file 'openlp/plugins/images/lib/mediaitem.py'
--- openlp/plugins/images/lib/mediaitem.py 2012-03-04 14:52:09 +0000
+++ openlp/plugins/images/lib/mediaitem.py 2012-03-15 08:44:20 +0000
@@ -234,7 +234,7 @@
'There was a problem replacing your background, '
'the image file "%s" no longer exists.')) % filename)
- def search(self, string):
+ def search(self, string, showError):
files = SettingsManager.load_list(self.settingsSection, u'images')
results = []
string = string.lower()
=== modified file 'openlp/plugins/media/lib/mediaitem.py'
--- openlp/plugins/media/lib/mediaitem.py 2012-03-12 10:53:17 +0000
+++ openlp/plugins/media/lib/mediaitem.py 2012-03-15 08:44:20 +0000
@@ -310,7 +310,7 @@
media = filter(lambda x: os.path.splitext(x)[1] in ext, media)
return media
- def search(self, string):
+ def search(self, string, showError):
files = SettingsManager.load_list(self.settingsSection, u'media')
results = []
string = string.lower()
=== modified file 'openlp/plugins/presentations/lib/mediaitem.py'
--- openlp/plugins/presentations/lib/mediaitem.py 2012-01-18 13:50:06 +0000
+++ openlp/plugins/presentations/lib/mediaitem.py 2012-03-15 08:44:20 +0000
@@ -322,7 +322,7 @@
return controller
return None
- def search(self, string):
+ def search(self, string, showError):
files = SettingsManager.load_list(
self.settingsSection, u'presentations')
results = []
=== modified file 'openlp/plugins/remotes/lib/httpserver.py'
--- openlp/plugins/remotes/lib/httpserver.py 2011-12-29 18:47:39 +0000
+++ openlp/plugins/remotes/lib/httpserver.py 2012-03-15 08:44:20 +0000
@@ -522,7 +522,7 @@
plugin = self.parent.plugin.pluginManager.get_plugin_by_name(type)
if plugin.status == PluginStatus.Active and \
plugin.mediaItem and plugin.mediaItem.hasSearch:
- results = plugin.mediaItem.search(text)
+ results = plugin.mediaItem.search(text, False)
else:
results = []
return HttpResponse(
=== modified file 'openlp/plugins/songs/lib/mediaitem.py'
--- openlp/plugins/songs/lib/mediaitem.py 2012-03-05 10:09:07 +0000
+++ openlp/plugins/songs/lib/mediaitem.py 2012-03-15 08:44:20 +0000
@@ -586,7 +586,7 @@
Receiver.send_message(u'service_item_update',
u'%s:%s:%s' % (editId, item._uuid, temporary))
- def search(self, string):
+ def search(self, string, showError):
"""
Search for some songs
"""