forked from openlp/openlp
Singing The Faith Importer - Initial version
This commit is contained in:
parent
0653f2d64f
commit
20d0b40f8b
@ -42,6 +42,7 @@ from .importers.powerpraise import PowerPraiseImport
|
|||||||
from .importers.powersong import PowerSongImport
|
from .importers.powersong import PowerSongImport
|
||||||
from .importers.presentationmanager import PresentationManagerImport
|
from .importers.presentationmanager import PresentationManagerImport
|
||||||
from .importers.propresenter import ProPresenterImport
|
from .importers.propresenter import ProPresenterImport
|
||||||
|
from .importers.singingthefaith import SingingTheFaithImport
|
||||||
from .importers.songbeamer import SongBeamerImport
|
from .importers.songbeamer import SongBeamerImport
|
||||||
from .importers.songpro import SongProImport
|
from .importers.songpro import SongProImport
|
||||||
from .importers.songshowplus import SongShowPlusImport
|
from .importers.songshowplus import SongShowPlusImport
|
||||||
@ -173,16 +174,17 @@ class SongFormat(object):
|
|||||||
PowerSong = 16
|
PowerSong = 16
|
||||||
PresentationManager = 17
|
PresentationManager = 17
|
||||||
ProPresenter = 18
|
ProPresenter = 18
|
||||||
SongBeamer = 19
|
SingingTheFaith = 19
|
||||||
SongPro = 20
|
SongBeamer = 20
|
||||||
SongShowPlus = 21
|
SongPro = 21
|
||||||
SongsOfFellowship = 22
|
SongShowPlus = 22
|
||||||
SundayPlus = 23
|
SongsOfFellowship = 23
|
||||||
VideoPsalm = 24
|
SundayPlus = 24
|
||||||
WordsOfWorship = 25
|
VideoPsalm = 25
|
||||||
WorshipAssistant = 26
|
WordsOfWorship = 26
|
||||||
WorshipCenterPro = 27
|
WorshipAssistant = 27
|
||||||
ZionWorx = 28
|
WorshipCenterPro = 28
|
||||||
|
ZionWorx = 29
|
||||||
|
|
||||||
# Set optional attribute defaults
|
# Set optional attribute defaults
|
||||||
__defaults__ = {
|
__defaults__ = {
|
||||||
@ -343,6 +345,15 @@ class SongFormat(object):
|
|||||||
'filter': '{text} (*.pro4 *.pro5 *.pro6)'.format(text=translate('SongsPlugin.ImportWizardForm',
|
'filter': '{text} (*.pro4 *.pro5 *.pro6)'.format(text=translate('SongsPlugin.ImportWizardForm',
|
||||||
'ProPresenter Song Files'))
|
'ProPresenter Song Files'))
|
||||||
},
|
},
|
||||||
|
SingingTheFaith: {
|
||||||
|
'class': SingingTheFaithImport,
|
||||||
|
'name': 'SingingTheFaith',
|
||||||
|
'prefix': 'singingTheFaith',
|
||||||
|
'filter': '%s (*.txt)' % translate('SongsPlugin.ImportWizardForm', 'Singing The Faith Exported Files'),
|
||||||
|
'descriptionText': translate('SongsPlugin.ImportWizardForm',
|
||||||
|
'First use Singing The Faith Electonic edition to export '
|
||||||
|
'the song(s) in Text format.')
|
||||||
|
},
|
||||||
SongBeamer: {
|
SongBeamer: {
|
||||||
'class': SongBeamerImport,
|
'class': SongBeamerImport,
|
||||||
'name': 'SongBeamer',
|
'name': 'SongBeamer',
|
||||||
@ -462,6 +473,7 @@ class SongFormat(object):
|
|||||||
SongFormat.PowerSong,
|
SongFormat.PowerSong,
|
||||||
SongFormat.PresentationManager,
|
SongFormat.PresentationManager,
|
||||||
SongFormat.ProPresenter,
|
SongFormat.ProPresenter,
|
||||||
|
SongFormat.SingingTheFaith,
|
||||||
SongFormat.SongBeamer,
|
SongFormat.SongBeamer,
|
||||||
SongFormat.SongPro,
|
SongFormat.SongPro,
|
||||||
SongFormat.SongShowPlus,
|
SongFormat.SongShowPlus,
|
||||||
|
@ -123,7 +123,7 @@ class SongImportTestHelper(TestCase):
|
|||||||
log.debug("Song copyright imported: %s" % importer.song_number)
|
log.debug("Song copyright imported: %s" % importer.song_number)
|
||||||
log.debug("Topics imported: %s" % importer.topics)
|
log.debug("Topics imported: %s" % importer.topics)
|
||||||
|
|
||||||
assert importer.title == title, 'title for %s should be "%s"' % (source_file_name, title)
|
assert importer.title == title, 'title for %s should be "%s" and is "%s"' % (source_file_name, title, importer.title)
|
||||||
for author in author_calls:
|
for author in author_calls:
|
||||||
if isinstance(author, str):
|
if isinstance(author, str):
|
||||||
self.mocked_add_author.assert_any_call(author)
|
self.mocked_add_author.assert_any_call(author)
|
||||||
|
Loading…
Reference in New Issue
Block a user