From fb76540df6df84d6a2e20e8c3bbff3436bbee639 Mon Sep 17 00:00:00 2001 From: fpdb-mme Date: Mon, 2 Nov 2009 09:54:16 +0100 Subject: [PATCH] added a TODO: if the user may passes '' (empty string) as database name via command line, his choice is ignored when we parse the xml we allow for ''. there has to be a decission if to allow '' or not --- pyfpdb/Configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index d174e5da..f2371aa1 100755 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -398,7 +398,8 @@ class Config: if self.db_selected is None or db.db_selected: self.db_selected = db.db_name self.supported_databases[db.db_name] = db - + #TODO: if the user may passes '' (empty string) as database name via command line, his choice is ignored + # when we parse the xml we allow for ''. there has to be a decission if to allow '' or not if dbname and dbname in self.supported_databases: self.db_selected = dbname #NOTE: fpdb can not handle the case when no database is defined in xml, so we throw an exception for now