[GRASS-SVN] r58669 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 10 11:29:36 PST 2014
Author: martinl
Date: 2014-01-10 11:29:36 -0800 (Fri, 10 Jan 2014)
New Revision: 58669
Modified:
grass/trunk/gui/wxpython/gmodeler/frame.py
grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: support 'region' type in variables
Modified: grass/trunk/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/frame.py 2014-01-10 16:35:43 UTC (rev 58668)
+++ grass/trunk/gui/wxpython/gmodeler/frame.py 2014-01-10 19:29:36 UTC (rev 58669)
@@ -1444,6 +1444,7 @@
_("string"),
_("raster"),
_("vector"),
+ _("region"),
_("mapset"),
_("file")])
self.type.SetSelection(2) # string
Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py 2014-01-10 16:35:43 UTC (rev 58668)
+++ grass/trunk/gui/wxpython/gmodeler/model.py 2014-01-10 19:29:36 UTC (rev 58669)
@@ -767,7 +767,7 @@
'idx' : idx }
for name, values in self.variables.iteritems():
gtype = values.get('type', 'string')
- if gtype in ('raster', 'vector', 'mapset', 'file'):
+ if gtype in ('raster', 'vector', 'mapset', 'file', 'region'):
gisprompt = True
prompt = gtype
if gtype == 'raster':
More information about the grass-commit
mailing list