forked from openlp/openlp
Open up database
bzr-revno: 404
This commit is contained in:
parent
051b314da8
commit
8b635e6cb5
@ -44,7 +44,7 @@ class CustomManager():
|
|||||||
"""
|
"""
|
||||||
self.config = config
|
self.config = config
|
||||||
log.debug('Custom Initialising')
|
log.debug('Custom Initialising')
|
||||||
"""self.db_url = u''
|
self.db_url = u''
|
||||||
db_type = self.config.get_config(u'db type')
|
db_type = self.config.get_config(u'db type')
|
||||||
if db_type == u'sqlite':
|
if db_type == u'sqlite':
|
||||||
self.db_url = u'sqlite:///' + self.config.get_data_path() + \
|
self.db_url = u'sqlite:///' + self.config.get_data_path() + \
|
||||||
@ -58,7 +58,7 @@ class CustomManager():
|
|||||||
self.session = init_models(self.db_url)
|
self.session = init_models(self.db_url)
|
||||||
if not custom_slide_table.exists():
|
if not custom_slide_table.exists():
|
||||||
metadata.create_all()
|
metadata.create_all()
|
||||||
"""
|
|
||||||
log.debug('Custom Initialised')
|
log.debug('Custom Initialised')
|
||||||
#
|
#
|
||||||
# def process_dialog(self, dialogobject):
|
# def process_dialog(self, dialogobject):
|
||||||
|
Loading…
Reference in New Issue
Block a user