forked from openlp/openlp
test theme, alttheme -> our theme
This commit is contained in:
parent
860d3e2923
commit
b04c93e9a7
@ -77,7 +77,7 @@ class SongXMLBuilder(object):
|
|||||||
The actual text of the verse to be stored.
|
The actual text of the verse to be stored.
|
||||||
"""
|
"""
|
||||||
# log.debug(u'add_verse_to_lyrics %s, %s\n%s' % (type, number, content))
|
# log.debug(u'add_verse_to_lyrics %s, %s\n%s' % (type, number, content))
|
||||||
verse = etree.Element(u'verse', type=type, label=number)
|
verse = etree.Element(u'verse', type=unicode(type), label=unicode(number))
|
||||||
verse.text = etree.CDATA(content)
|
verse.text = etree.CDATA(content)
|
||||||
self.lyrics.append(verse)
|
self.lyrics.append(verse)
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ class SongImport(object):
|
|||||||
self.alternate_title = u''
|
self.alternate_title = u''
|
||||||
self.copyright = u''
|
self.copyright = u''
|
||||||
self.comment = u''
|
self.comment = u''
|
||||||
self.theme_name = u''
|
self.theme = u''
|
||||||
self.ccli_number = u''
|
self.song_cclino = u''
|
||||||
self.authors = []
|
self.authors = []
|
||||||
self.topics = []
|
self.topics = []
|
||||||
self.song_book_name = u''
|
self.song_book_name = u''
|
||||||
@ -303,8 +303,8 @@ class SongImport(object):
|
|||||||
song.verse_order = u' '.join(self.verse_order_list)
|
song.verse_order = u' '.join(self.verse_order_list)
|
||||||
song.copyright = self.copyright
|
song.copyright = self.copyright
|
||||||
song.comment = self.comment
|
song.comment = self.comment
|
||||||
song.theme_name = self.theme_name
|
song.theme = self.theme
|
||||||
song.ccli_number = self.ccli_number
|
song.song_cclino = self.song_cclino
|
||||||
for authortext in self.authors:
|
for authortext in self.authors:
|
||||||
author = self.manager.get_object_filtered(Author,
|
author = self.manager.get_object_filtered(Author,
|
||||||
Author.display_name == authortext)
|
Author.display_name == authortext)
|
||||||
@ -358,7 +358,7 @@ class SongImport(object):
|
|||||||
print u'TOPIC: ' + topictext
|
print u'TOPIC: ' + topictext
|
||||||
if self.comment:
|
if self.comment:
|
||||||
print u'COMMENT: ' + self.comment
|
print u'COMMENT: ' + self.comment
|
||||||
if self.theme_name:
|
if self.theme:
|
||||||
print u'THEME: ' + self.theme_name
|
print u'THEME: ' + self.theme
|
||||||
if self.ccli_number:
|
if self.song_cclino:
|
||||||
print u'CCLI: ' + self.ccli_number
|
print u'CCLI: ' + self.song_cclino
|
||||||
|
Loading…
Reference in New Issue
Block a user