From 1b71908bca2b184dbd7ddeaa33b8a5f7e82cd01d Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 7 Aug 2015 19:24:37 -0400 Subject: [PATCH] clidbman and arghandler: use database-backend for CLI imports --- gramps/cli/arghandler.py | 3 ++- gramps/cli/clidbman.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/cli/arghandler.py b/gramps/cli/arghandler.py index 50efcfa1a..9984b8df4 100644 --- a/gramps/cli/arghandler.py +++ b/gramps/cli/arghandler.py @@ -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') diff --git a/gramps/cli/clidbman.py b/gramps/cli/clidbman.py index ce7cb7b5c..176ed9ee3 100644 --- a/gramps/cli/clidbman.py +++ b/gramps/cli/clidbman.py @@ -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()