Clean up serviceitem

This commit is contained in:
Tim Bentley 2009-09-20 08:17:20 +01:00
parent 5c91bb7fe4
commit 9d959d5aab

View File

@ -93,15 +93,10 @@ class ServiceItem(object):
self.RenderManager.set_override_theme(None) self.RenderManager.set_override_theme(None)
else: else:
self.RenderManager.set_override_theme(self.theme) self.RenderManager.set_override_theme(self.theme)
firstTime = True
for slide in self.service_frames: for slide in self.service_frames:
formated = self.RenderManager.format_slide(slide[u'raw_slide']) formated = self.RenderManager.format_slide(slide[u'raw_slide'])
for format in formated: for format in formated:
frame = None frame = None
if firstTime:
frame = self.RenderManager.generate_slide(format,
self.raw_footer)
firstTime = False
lines = u'' lines = u''
for line in format: for line in format:
lines += line + u'\n' lines += line + u'\n'