~gtalent/openlp/openlp

« back to all changes in this revision

Viewing changes to openlp/plugins/songs/lib/importer.py

  • Committer: Gary Talent
  • Date: 2016-09-07 05:15:37 UTC
  • Revision ID: gtalent2@gmail.com-20160907051537-rc808cwftw65esaa
Add support for importing EasyWorship6 databases

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
    DreamBeam = 4
159
159
    EasySlides = 5
160
160
    EasyWorshipDB = 6
161
 
    EasyWorshipService = 7
162
 
    FoilPresenter = 8
163
 
    Lyrix = 9
164
 
    MediaShout = 10
165
 
    OpenSong = 11
166
 
    OPSPro = 12
167
 
    PowerPraise = 13
168
 
    PowerSong = 14
169
 
    PresentationManager = 15
170
 
    ProPresenter = 16
171
 
    SongBeamer = 17
172
 
    SongPro = 18
173
 
    SongShowPlus = 19
174
 
    SongsOfFellowship = 20
175
 
    SundayPlus = 21
176
 
    VideoPsalm = 22
177
 
    WordsOfWorship = 23
178
 
    WorshipAssistant = 24
179
 
    WorshipCenterPro = 25
180
 
    ZionWorx = 26
 
161
    EasyWorshipSqliteDB = 7
 
162
    EasyWorshipService = 8
 
163
    FoilPresenter = 9
 
164
    Lyrix = 10
 
165
    MediaShout = 11
 
166
    OpenSong = 12
 
167
    OPSPro = 13
 
168
    PowerPraise = 14
 
169
    PowerSong = 15
 
170
    PresentationManager = 16
 
171
    ProPresenter = 17
 
172
    SongBeamer = 18
 
173
    SongPro = 19
 
174
    SongShowPlus = 20
 
175
    SongsOfFellowship = 21
 
176
    SundayPlus = 22
 
177
    VideoPsalm = 23
 
178
    WordsOfWorship = 24
 
179
    WorshipAssistant = 25
 
180
    WorshipCenterPro = 26
 
181
    ZionWorx = 27
181
182
 
182
183
    # Set optional attribute defaults
183
184
    __defaults__ = {
242
243
            'name': 'EasyWorship Song Database',
243
244
            'prefix': 'ew',
244
245
            'selectMode': SongFormatSelect.SingleFile,
 
246
            'filter': '{text} (*.DB)'.format(text=translate('SongsPlugin.ImportWizardForm',
 
247
                                                            'EasyWorship Song Database'))
 
248
        },
 
249
        EasyWorshipSqliteDB: {
 
250
            'class': EasyWorshipSongImport,
 
251
            'name': 'EasyWorship 6 Song Database',
 
252
            'prefix': 'ew',
 
253
            'selectMode': SongFormatSelect.SingleFolder,
245
254
            'filter': '{text} (*.db)'.format(text=translate('SongsPlugin.ImportWizardForm',
246
 
                                                            'EasyWorship Song Database'))
 
255
                                                            'EasyWorship 6 Song Data Directory'))
247
256
        },
248
257
        EasyWorshipService: {
249
258
            'class': EasyWorshipSongImport,
430
439
            SongFormat.DreamBeam,
431
440
            SongFormat.EasySlides,
432
441
            SongFormat.EasyWorshipDB,
 
442
            SongFormat.EasyWorshipSqliteDB,
433
443
            SongFormat.EasyWorshipService,
434
444
            SongFormat.FoilPresenter,
435
445
            SongFormat.Lyrix,