changed skip_song to save_song

This commit is contained in:
Philip Ridout 2013-07-24 19:41:38 +01:00
parent 201dc353ff
commit 4e3b92516d
1 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ class FoilPresenter(object):
song.search_lyrics = u''
song.verse_order = u''
song.search_title = u''
self.skip_song = False
self.save_song = False
# Because "text" seems to be an reserverd word, we have to recompile it.
xml = re.compile(u'<text>').sub(u'<text_>', xml)
xml = re.compile(u'</text>').sub(u'</text_>', xml)
@ -239,7 +239,7 @@ class FoilPresenter(object):
self._process_authors(foilpresenterfolie, song)
self._process_songbooks(foilpresenterfolie, song)
self._process_topics(foilpresenterfolie, song)
if not self.skip_song:
if not self.save_song:
clean_song(self.manager, song)
self.manager.save_object(song)
@ -432,7 +432,7 @@ class FoilPresenter(object):
self.importer.logError(self._child(foilpresenterfolie.titel),
unicode(translate('SongsPlugin.FoilPresenterSongImport',
'Invalid Foilpresenter song file. No verses found.')))
self.skip_song = True
self.save_song = True
return
for strophe in foilpresenterfolie.strophen.strophe:
text = self._child(strophe.text_) if hasattr(strophe, u'text_') \