Note: If a title is not present in the song, it is still added. I feel this is the right action, as it apears that that is how it was in Foil Presenter
This commit is contained in:
Philip Ridout 2012-07-14 21:35:19 +01:00
parent f0047bece0
commit 22c3c76a5a

View File

@ -483,6 +483,7 @@ class FoilPresenter(object):
# Process verse order
verse_order = []
verse_strophenr = []
if hasattr(foilpresenterfolie, u'reihenfolge.strophennummer'):
for strophennummer in foilpresenterfolie.reihenfolge.strophennummer:
verse_strophenr.append(strophennummer)
# Currently we do not support different "parts"!
@ -538,6 +539,7 @@ class FoilPresenter(object):
``song``
The song object.
"""
if hasattr(foilpresenterfolie, u'titel.titelstring'):
for title_string in foilpresenterfolie.titel.titelstring:
if not song.title:
song.title = self._child(title_string)