openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #06576
[Merge] lp:~trb143/openlp/bugs into lp:openlp
Tim Bentley has proposed merging lp:~trb143/openlp/bugs into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
#693150 Custom Slide Display footer option
https://bugs.launchpad.net/bugs/693150
#693202 delete theme
https://bugs.launchpad.net/bugs/693202
For more details, see:
https://code.launchpad.net/~trb143/openlp/bugs/+merge/51406
Small Cleanup
--
https://code.launchpad.net/~trb143/openlp/bugs/+merge/51406
Your team OpenLP Core is requested to review the proposed merge of lp:~trb143/openlp/bugs into lp:openlp.
=== modified file 'openlp/core/lib/rendermanager.py'
--- openlp/core/lib/rendermanager.py 2011-02-24 05:47:38 +0000
+++ openlp/core/lib/rendermanager.py 2011-02-26 07:16:15 +0000
@@ -34,6 +34,15 @@
log = logging.getLogger(__name__)
+VERSE = u'The Lord said to {r}Noah{/r}: \n' \
+ 'There\'s gonna be a {su}floody{/su}, {sb}floody{/sb}\n' \
+ 'The Lord said to {g}Noah{/g}:\n' \
+ 'There\'s gonna be a {st}floody{/st}, {it}floody{/it}\n' \
+ 'Get those children out of the muddy, muddy \n' \
+ '{r}C{/r}{b}h{/b}{bl}i{/bl}{y}l{/y}{g}d{/g}{pk}' \
+ 'r{/pk}{o}e{/o}{pp}n{/pp} of the Lord\n'
+FOOTER = [u'Arky Arky (Unknown)', u'Public Domain', u'CCLI 123456']
+
class RenderManager(object):
"""
Class to pull all Renderer interactions into one place. The plugins will
@@ -202,28 +211,17 @@
self.force_page = force_page
# set the default image size for previews
self.calculate_default(self.screens.preview[u'size'])
- verse = u'The Lord said to {r}Noah{/r}: \n' \
- 'There\'s gonna be a {su}floody{/su}, {sb}floody{/sb}\n' \
- 'The Lord said to {g}Noah{/g}:\n' \
- 'There\'s gonna be a {st}floody{/st}, {it}floody{/it}\n' \
- 'Get those children out of the muddy, muddy \n' \
- '{r}C{/r}{b}h{/b}{bl}i{/bl}{y}l{/y}{g}d{/g}{pk}' \
- 'r{/pk}{o}e{/o}{pp}n{/pp} of the Lord\n'
- # make big page for theme edit dialog to get line count
- if self.force_page:
- verse = verse + verse + verse
- else:
- self.image_manager.del_image(theme_data.theme_name)
- footer = []
- footer.append(u'Arky Arky (Unknown)')
- footer.append(u'Public Domain')
- footer.append(u'CCLI 123456')
# build a service item to generate preview
serviceItem = ServiceItem()
serviceItem.theme = theme_data
- serviceItem.add_from_text(u'', verse, footer)
+ if self.force_page:
+ # make big page for theme edit dialog to get line count
+ serviceItem.add_from_text(u'', VERSE + VERSE + VERSE, FOOTER)
+ else:
+ self.image_manager.del_image(theme_data.theme_name)
+ serviceItem.add_from_text(u'', VERSE, FOOTER)
serviceItem.render_manager = self
- serviceItem.raw_footer = footer
+ serviceItem.raw_footer = FOOTER
serviceItem.render(True)
if not self.force_page:
self.display.buildHtml(serviceItem)
Follow ups