forked from openlp/openlp
Missed an attribute
This commit is contained in:
parent
223b198dc8
commit
9a049929fc
@ -37,6 +37,7 @@ class BibleImport(OpenLPMixin, RegistryProperties, BibleDB):
|
|||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.filename = kwargs['filename'] if 'filename' in kwargs else None
|
self.filename = kwargs['filename'] if 'filename' in kwargs else None
|
||||||
self.wizard = None
|
self.wizard = None
|
||||||
|
self.stop_import_flag = False
|
||||||
Registry().register_function('openlp_stop_wizard', self.stop_import)
|
Registry().register_function('openlp_stop_wizard', self.stop_import)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -140,7 +140,6 @@ class BibleDB(Manager):
|
|||||||
raise KeyError('Missing keyword argument "path".')
|
raise KeyError('Missing keyword argument "path".')
|
||||||
if 'name' not in kwargs and 'file' not in kwargs:
|
if 'name' not in kwargs and 'file' not in kwargs:
|
||||||
raise KeyError('Missing keyword argument "name" or "file".')
|
raise KeyError('Missing keyword argument "name" or "file".')
|
||||||
self.stop_import_flag = False
|
|
||||||
if 'name' in kwargs:
|
if 'name' in kwargs:
|
||||||
self.name = kwargs['name']
|
self.name = kwargs['name']
|
||||||
if not isinstance(self.name, str):
|
if not isinstance(self.name, str):
|
||||||
|
Loading…
Reference in New Issue
Block a user