[GRASS-SVN] r36133 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 28 06:49:48 EST 2009
Author: martinl
Date: 2009-02-28 06:49:48 -0500 (Sat, 28 Feb 2009)
New Revision: 36133
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix columnselect update
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2009-02-28 11:26:22 UTC (rev 36132)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2009-02-28 11:49:48 UTC (rev 36133)
@@ -1374,8 +1374,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
@@ -1607,7 +1607,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'))
columns = win.GetItems()
else:
win.SetItems(columns)
More information about the grass-commit
mailing list