[GRASS-SVN] r42994 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 4 07:22:18 EDT 2010
Author: martinl
Date: 2010-08-04 11:22:18 +0000 (Wed, 04 Aug 2010)
New Revision: 42994
Modified:
grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI/dbm: set default DB settings if not defined
Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2010-08-04 11:10:54 UTC (rev 42993)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2010-08-04 11:22:18 UTC (rev 42994)
@@ -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