[GRASS-SVN] r41404 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 12 09:24:07 EST 2010
Author: martinl
Date: 2010-03-12 09:24:07 -0500 (Fri, 12 Mar 2010)
New Revision: 41404
Modified:
grass/trunk/gui/wxpython/gui_modules/dbm.py
Log:
bugfix #979
(merge r41402 from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm.py 2010-03-12 14:21:31 UTC (rev 41403)
+++ grass/trunk/gui/wxpython/gui_modules/dbm.py 2010-03-12 14:24:07 UTC (rev 41404)
@@ -2340,8 +2340,11 @@
if len(self.defaultConnect['driver']) == 0 or \
len(self.defaultConnect['database']) == 0:
- raise gcmd.DBMError(_('Unable to determine default DB connection settings. '
- 'Please define DB connection using db.connect module.'))
+ wx.MessageBox(parent=self.parent,
+ message=_("Unknown default DB connection. "
+ "Please define DB connection using db.connect module."),
+ caption=_("Warning"),
+ style=wx.OK | wx.ICON_WARNING | wx.CENTRE)
self.defaultTables = self.__getTables(self.defaultConnect['driver'],
self.defaultConnect['database'])
More information about the grass-commit
mailing list