forked from openlp/openlp
removed dead code
This commit is contained in:
parent
140178a674
commit
f3b49c4dd5
@ -94,8 +94,6 @@ class BibleImportForm(OpenLPWizard):
|
|||||||
button.
|
button.
|
||||||
"""
|
"""
|
||||||
self.selectStack.setCurrentIndex(index)
|
self.selectStack.setCurrentIndex(index)
|
||||||
next_button = self.button(QtGui.QWizard.NextButton)
|
|
||||||
next_button.setEnabled(BibleFormat.get_availability(index))
|
|
||||||
|
|
||||||
def custom_init(self):
|
def custom_init(self):
|
||||||
"""
|
"""
|
||||||
@ -482,7 +480,6 @@ class BibleImportForm(OpenLPWizard):
|
|||||||
self.setField(u'proxy_server', settings.value(u'proxy address'))
|
self.setField(u'proxy_server', settings.value(u'proxy address'))
|
||||||
self.setField(u'proxy_username', settings.value(u'proxy username'))
|
self.setField(u'proxy_username', settings.value(u'proxy username'))
|
||||||
self.setField(u'proxy_password', settings.value(u'proxy password'))
|
self.setField(u'proxy_password', settings.value(u'proxy password'))
|
||||||
self.setField(u'openlp1_location', '')
|
|
||||||
self.setField(u'license_version', self.versionNameEdit.text())
|
self.setField(u'license_version', self.versionNameEdit.text())
|
||||||
self.setField(u'license_copyright', self.copyrightEdit.text())
|
self.setField(u'license_copyright', self.copyrightEdit.text())
|
||||||
self.setField(u'license_permissions', self.permissionsEdit.text())
|
self.setField(u'license_permissions', self.permissionsEdit.text())
|
||||||
|
@ -43,13 +43,11 @@ from osis import OSISBible
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class BibleFormat(object):
|
class BibleFormat(object):
|
||||||
"""
|
"""
|
||||||
This is a special enumeration class that holds the various types of Bibles,
|
This is a special enumeration class that holds the various types of Bibles.
|
||||||
plus a few helper functions to facilitate generic handling of Bible types
|
|
||||||
for importing.
|
|
||||||
"""
|
"""
|
||||||
_format_availability = {}
|
|
||||||
Unknown = -1
|
Unknown = -1
|
||||||
OSIS = 0
|
OSIS = 0
|
||||||
CSV = 1
|
CSV = 1
|
||||||
@ -87,14 +85,6 @@ class BibleFormat(object):
|
|||||||
BibleFormat.WebDownload,
|
BibleFormat.WebDownload,
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def set_availability(format, available):
|
|
||||||
BibleFormat._format_availability[format] = available
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def get_availability(format):
|
|
||||||
return BibleFormat._format_availability.get(format, True)
|
|
||||||
|
|
||||||
|
|
||||||
class BibleManager(object):
|
class BibleManager(object):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user