[GRASS-SVN] r36135 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 28 07:02:30 EST 2009
Author: martinl
Date: 2009-02-28 07:02:30 -0500 (Sat, 28 Feb 2009)
New Revision: 36135
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix columnselect update
(merge from devbr6, r36133)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2009-02-28 11:52:13 UTC (rev 36134)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2009-02-28 12:02:30 UTC (rev 36135)
@@ -1373,8 +1373,8 @@
if pDatabase and pTable:
pDatabase['wxId-bind'] = [pTable['wxId'], ]
- if pTable and pColumn:
- pTable['wxId-bind'] = pColumn
+ if pTable and pColumnIds:
+ pTable['wxId-bind'] = pColumnIds
#
# determine panel size
@@ -1595,8 +1595,10 @@
pTable = self.task.get_param('dbtable', element='element', raiseError=False)
if pTable and \
pTable.get('value', '') != '':
- win.InsertTableColumns(pTable.get('value'), driver, db)
-
+ if driver and db:
+ win.InsertTableColumns(pTable.get('value'), driver, db)
+ else:
+ win.InsertTableColumns(pTable.get('value'))
if event:
event.Skip()
More information about the grass-commit
mailing list