clidbman and arghandler: use database-backend for CLI imports
This commit is contained in:
parent
644fff5f18
commit
1b71908bca
@ -489,7 +489,8 @@ class ArgHandler(object):
|
||||
if not self.open:
|
||||
# Create empty dir for imported database(s)
|
||||
if self.gui:
|
||||
self.imp_db_path, title = self.dbman.create_new_db_cli()
|
||||
dbid = config.get('behavior.database-backend')
|
||||
self.imp_db_path, title = self.dbman.create_new_db_cli(dbid=dbid)
|
||||
else:
|
||||
self.imp_db_path = get_empty_tempdir("import_dbdir")
|
||||
dbid = config.get('behavior.database-backend')
|
||||
|
@ -334,7 +334,8 @@ class CLIDbManager(object):
|
||||
# Create a new database
|
||||
self.__start_cursor(_("Importing data..."))
|
||||
|
||||
dbase = self.dbstate.make_database("bsddb")
|
||||
dbid = config.get('behavior.database-backend')
|
||||
dbase = self.dbstate.make_database(dbid)
|
||||
dbase.load(new_path, user.callback)
|
||||
|
||||
import_function = plugin.get_import_function()
|
||||
|
Loading…
Reference in New Issue
Block a user