forked from openlp/openlp
Remove redundant logging and incrementProgressBar
This commit is contained in:
parent
1717e4fa4c
commit
ca3e938afe
@ -31,14 +31,11 @@ a MediaShout database into the OpenLP database.
|
|||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import logging
|
|
||||||
import pyodbc
|
import pyodbc
|
||||||
|
|
||||||
from openlp.core.lib import translate
|
from openlp.core.lib import translate
|
||||||
from openlp.plugins.songs.lib.songimport import SongImport
|
from openlp.plugins.songs.lib.songimport import SongImport
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
VERSE_TAGS = [u'V', u'C', u'B', u'O', u'P', u'I', u'E']
|
VERSE_TAGS = [u'V', u'C', u'B', u'O', u'P', u'I', u'E']
|
||||||
|
|
||||||
class MediaShoutImport(SongImport):
|
class MediaShoutImport(SongImport):
|
||||||
|
@ -31,14 +31,11 @@ songs into the OpenLP database.
|
|||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import logging
|
|
||||||
|
|
||||||
from openlp.core.lib import translate
|
from openlp.core.lib import translate
|
||||||
from openlp.plugins.songs.lib import strip_rtf
|
from openlp.plugins.songs.lib import strip_rtf
|
||||||
from openlp.plugins.songs.lib.songimport import SongImport
|
from openlp.plugins.songs.lib.songimport import SongImport
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
class SongProImport(SongImport):
|
class SongProImport(SongImport):
|
||||||
"""
|
"""
|
||||||
The :class:`SongProImport` class provides the ability to import song files
|
The :class:`SongProImport` class provides the ability to import song files
|
||||||
@ -106,8 +103,8 @@ class SongProImport(SongImport):
|
|||||||
self.setDefaults()
|
self.setDefaults()
|
||||||
if text:
|
if text:
|
||||||
self.title = text
|
self.title = text
|
||||||
self.importWizard.incrementProgressBar(u'Processing song ' + text,
|
#self.importWizard.incrementProgressBar(u'Processing song ' + text,
|
||||||
0)
|
# 0)
|
||||||
return
|
return
|
||||||
elif tag == u'E':
|
elif tag == u'E':
|
||||||
self.finish()
|
self.finish()
|
||||||
|
Loading…
Reference in New Issue
Block a user