From efefae4941f5cc192fd1607240c5ed1a5417a549 Mon Sep 17 00:00:00 2001 From: fpdb-mme Date: Wed, 4 Nov 2009 19:01:12 +0100 Subject: [PATCH] fix: db_type is actually db_server --- pyfpdb/DatabaseManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/DatabaseManager.py b/pyfpdb/DatabaseManager.py index 7164a6e0..1269f540 100644 --- a/pyfpdb/DatabaseManager.py +++ b/pyfpdb/DatabaseManager.py @@ -50,10 +50,10 @@ class DatabaseManager(gobject.GObject): #TODO: fpdb stores databases in no particular order. this has to be fixed somehow databases = [] for name, fpdbDatabase in config.supported_databases.items(): - databaseKlass = klass.DatabaseTypes.get(fpdbDatabase.db_type, None) + databaseKlass = klass.DatabaseTypes.get(fpdbDatabase.db_server, None) #NOTE: Config does not seem to validate user input, so anything may end up here if databaseKlass is None: - raise ValueError('Unknown databasetype: %s' % fpdbDatabase.db_type) + raise ValueError('Unknown databasetype: %s' % fpdbDatabase.db_server) database = databaseKlass() if database.Type == 'sqlite':