[GRASS-SVN] r46273 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 14 09:53:25 EDT 2011
Author: mmetz
Date: 2011-05-14 06:53:25 -0700 (Sat, 14 May 2011)
New Revision: 46273
Modified:
grass/trunk/gui/wxpython/gui_modules/gselect.py
grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
attempt to fix #1362
Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py 2011-05-14 13:13:22 UTC (rev 46272)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py 2011-05-14 13:53:25 UTC (rev 46273)
@@ -656,7 +656,7 @@
def InsertLayers(self, vector):
"""!Insert layers for a vector into the layer combobox"""
- layerchoices = utils.GetVectorNumberOfLayers(vector)
+ layerchoices = utils.GetVectorNumberOfLayers(self, vector)
if self.all:
layerchoices.insert(0, '-1')
Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py 2011-05-14 13:13:22 UTC (rev 46272)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py 2011-05-14 13:53:25 UTC (rev 46273)
@@ -274,7 +274,7 @@
"""!Sort list items (not case-sensitive)"""
list.sort(cmp=lambda x, y: cmp(x.lower(), y.lower()))
-def GetVectorNumberOfLayers(vector):
+def GetVectorNumberOfLayers(parent, vector):
"""!Get list of vector layers"""
layers = list()
if not vector:
@@ -286,6 +286,7 @@
return layers
ret = gcmd.RunCommand('v.db.connect',
+ parent = parent,
flags = 'g',
read = True,
map = fullname,
More information about the grass-commit
mailing list