removed print statement, clean up

This commit is contained in:
Andreas Preikschat 2012-06-08 15:27:40 +02:00
parent ad3edd4e10
commit f17f0dc8cf
2 changed files with 1 additions and 2 deletions

View File

@ -152,7 +152,6 @@ class Renderer(object):
""" """
# Just assume we use the global theme. # Just assume we use the global theme.
theme_to_use = self.global_theme_name theme_to_use = self.global_theme_name
print self.global_theme_name
# The theme level is either set to Service or Item. Use the service # The theme level is either set to Service or Item. Use the service
# theme if one is set. We also have to use the service theme, even when # theme if one is set. We also have to use the service theme, even when
# the theme level is set to Item, because the item does not necessarily # the theme level is set to Item, because the item does not necessarily

View File

@ -204,7 +204,6 @@ class CustomMediaItem(MediaManagerItem):
service_item.add_capability(ItemCapabilities.CanSoftBreak) service_item.add_capability(ItemCapabilities.CanSoftBreak)
customSlide = self.plugin.manager.get_object(CustomSlide, item_id) customSlide = self.plugin.manager.get_object(CustomSlide, item_id)
title = customSlide.title title = customSlide.title
service_item.title = title
credit = customSlide.credits credit = customSlide.credits
service_item.edit_id = item_id service_item.edit_id = item_id
theme = customSlide.theme_name theme = customSlide.theme_name
@ -213,6 +212,7 @@ class CustomMediaItem(MediaManagerItem):
customXML = CustomXMLParser(customSlide.text) customXML = CustomXMLParser(customSlide.text)
verseList = customXML.get_verses() verseList = customXML.get_verses()
raw_slides = [verse[1] for verse in verseList] raw_slides = [verse[1] for verse in verseList]
service_item.title = title
for slide in raw_slides: for slide in raw_slides:
service_item.add_from_text(slide[:30], slide) service_item.add_from_text(slide[:30], slide)
if QtCore.QSettings().value(self.settingsSection + u'/display footer', if QtCore.QSettings().value(self.settingsSection + u'/display footer',