From 83d645fe47f9030d97faf03eb34800dcab758a37 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 20 Sep 2009 19:47:18 +0100 Subject: [PATCH] Change slide titles in Service to mean somthing --- openlp/core/lib/serviceitem.py | 3 ++- openlp/core/lib/songxmlhandler.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index c51af09fd..a6e163951 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -100,7 +100,8 @@ class ServiceItem(object): lines = u'' for line in format: lines += line + u'\n' - self.frames.append({u'title': slide[u'title'],u'text':lines, + title = lines.split(u'\n')[0] + self.frames.append({u'title': title ,u'text':lines, u'image': frame}) elif self.service_item_type == ServiceType.Command: self.frames = self.service_frames diff --git a/openlp/core/lib/songxmlhandler.py b/openlp/core/lib/songxmlhandler.py index 12f884ba1..bde98e1a0 100644 --- a/openlp/core/lib/songxmlhandler.py +++ b/openlp/core/lib/songxmlhandler.py @@ -131,7 +131,7 @@ class SongXMLParser(object): try: self.song_xml = ElementTree(element=XML(xml)) except: - log.debug(u'Invalid xml %s', xml) + log.exception(u'Invalid xml %s', xml) def get_verses(self): """