[GRASS-SVN] r59088 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 18 08:39:34 PST 2014
Author: martinl
Date: 2014-02-18 08:39:33 -0800 (Tue, 18 Feb 2014)
New Revision: 59088
Modified:
grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: do not check if default connection is defined (really needed?)
Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py 2014-02-18 16:12:43 UTC (rev 59087)
+++ grass/trunk/gui/wxpython/dbmgr/base.py 2014-02-18 16:39:33 UTC (rev 59088)
@@ -2615,11 +2615,12 @@
item, value = line.split(':', 1)
self.defaultConnect[item.strip()] = value.strip()
- if len(self.defaultConnect['driver']) == 0 or \
- len(self.defaultConnect['database']) == 0:
- GWarning(parent = self.parent,
- message = _("Unknown default DB connection. "
- "Please define DB connection using db.connect module."))
+ ### really needed?
+ # if len(self.defaultConnect['driver']) == 0 or \
+ # len(self.defaultConnect['database']) == 0:
+ # GWarning(parent = self.parent,
+ # message = _("Unknown default DB connection. "
+ # "Please define DB connection using db.connect module."))
self.defaultTables = self._getTables(self.defaultConnect['driver'],
self.defaultConnect['database'])
More information about the grass-commit
mailing list