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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 4 07:23:49 EDT 2010


Author: martinl
Date: 2010-08-04 11:23:48 +0000 (Wed, 04 Aug 2010)
New Revision: 42995

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI/dbm: set default DB settings if not defined
(merge r42994 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py	2010-08-04 11:22:18 UTC (rev 42994)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py	2010-08-04 11:23:48 UTC (rev 42995)
@@ -299,6 +299,9 @@
             key = UserSettings.Get(group='atm', key='keycolumn', subkey='value')
             sql = 'CREATE TABLE %s (%s INTEGER)' % (outmap, key)
             
+            gcmd.RunCommand('db.connect',
+                            flags = 'c')
+            
             gcmd.RunCommand('db.execute',
                             quiet = True,
                             parent = parent,



More information about the grass-commit mailing list