fix "gramps --databases"

This commit is contained in:
Paul Franklin 2016-09-15 19:34:58 -07:00
parent 64b5021843
commit 2bbb555797
2 changed files with 11 additions and 1 deletions

View File

@ -326,7 +326,7 @@ class ArgParser:
print()
sys.exit(0)
elif option in ['-b', '--databases']:
default = config.data["behavior"]["database-backend"]
default = config.data["database"]["backend"]
pmgr = BasePluginManager.get_instance()
pmgr.reg_plugins(PLUGINS_DIR, self, None)
pmgr.reg_plugins(USER_PLUGINS, self, None, load_on_reg=True)

View File

@ -210,6 +210,16 @@ class DummyDb(M_A_M_B("NewBaseClass", (DbReadBase, Callback, object,), {})):
__signals__ = {}
@classmethod
def get_class_summary(cls):
"""
Return a diction of information about this database.
"""
summary = {
"Database type": cls.__name__,
}
return summary
def __init__(self):
"""
Create a new DummyDb instance.