[GRASS-SVN] r41403 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 12 09:21:31 EST 2010


Author: martinl
Date: 2010-03-12 09:21:31 -0500 (Fri, 12 Mar 2010)
New Revision: 41403

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py
Log:
bugfix #979
(merge r41402 from devbr6)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py	2010-03-12 14:18:40 UTC (rev 41402)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/dbm.py	2010-03-12 14:21:31 UTC (rev 41403)
@@ -2199,8 +2199,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