clidbman and arghandler: use database-backend for CLI imports

This commit is contained in:
Doug Blank 2015-08-07 19:24:37 -04:00
parent 644fff5f18
commit 1b71908bca
2 changed files with 4 additions and 2 deletions

View File

@ -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')

View File

@ -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()