[GRASS-SVN] r41402 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 12 09:18:41 EST 2010


Author: martinl
Date: 2010-03-12 09:18:40 -0500 (Fri, 12 Mar 2010)
New Revision: 41402

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
Log:
bugfix #979


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2010-03-12 14:04:08 UTC (rev 41401)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py	2010-03-12 14:18:40 UTC (rev 41402)
@@ -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