forked from openlp/openlp
Service Manager loading - finished
This commit is contained in:
parent
68b38aa88c
commit
4d3a473e91
@ -811,11 +811,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
Triggered from plugins to update service items.
|
Triggered from plugins to update service items.
|
||||||
"""
|
"""
|
||||||
editId, uuid = message.split(u':')
|
editId, uuid = message.split(u':')
|
||||||
print message
|
|
||||||
for item in self.serviceItems:
|
for item in self.serviceItems:
|
||||||
print item[u'service_item'].title, item[u'service_item']._uuid
|
|
||||||
if item[u'service_item']._uuid == uuid:
|
if item[u'service_item']._uuid == uuid:
|
||||||
print u'match'
|
|
||||||
item[u'service_item'].editId = editId
|
item[u'service_item'].editId = editId
|
||||||
|
|
||||||
def addServiceItem(self, item, rebuild=False, expand=True, replace=False):
|
def addServiceItem(self, item, rebuild=False, expand=True, replace=False):
|
||||||
|
@ -379,11 +379,10 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
"""
|
"""
|
||||||
Triggered by a song being loaded by the service item
|
Triggered by a song being loaded by the service item
|
||||||
"""
|
"""
|
||||||
print item.data_string[u'title'].split(u'@')[0]
|
if item.data_string:
|
||||||
search_results = self.parent.manager.get_all_objects(Song,
|
search_results = self.parent.manager.get_all_objects(Song,
|
||||||
Song.search_title.like(u'%' + item.data_string[u'title'].split(u'@')[0] + u'%'),
|
Song.search_title.like(u'%' + item.data_string[u'title'].split(u'@')[0] + u'%'),
|
||||||
Song.search_title.asc())
|
Song.search_title.asc())
|
||||||
print item.data_string[u'authors'].split(u',')
|
|
||||||
author_list = item.data_string[u'authors'].split(u',')
|
author_list = item.data_string[u'authors'].split(u',')
|
||||||
editId = 0
|
editId = 0
|
||||||
uuid = 0
|
uuid = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user