[GRASS-SVN] r58519 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 24 04:11:45 PST 2013
Author: martinl
Date: 2013-12-24 04:11:45 -0800 (Tue, 24 Dec 2013)
New Revision: 58519
Modified:
grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: skip variables in model.GetMaps()
Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py 2013-12-24 12:07:21 UTC (rev 58518)
+++ grass/trunk/gui/wxpython/gmodeler/model.py 2013-12-24 12:11:45 UTC (rev 58519)
@@ -227,7 +227,11 @@
maps = list()
for data in self.GetData():
if prompt == data.GetPrompt():
- maps.append(data.GetValue())
+ mapName = data.GetValue()
+ if not mapName or mapName[0] is '%':
+ continue # skip variables
+ maps.append(mapName)
+
return maps
def GetData(self):
More information about the grass-commit
mailing list