[GRASS-SVN] r58531 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 25 15:28:05 PST 2013


Author: martinl
Date: 2013-12-25 15:28:05 -0800 (Wed, 25 Dec 2013)
New Revision: 58531

Modified:
   grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: fix loop condtion handling for python editor


Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py	2013-12-25 22:58:38 UTC (rev 58530)
+++ grass/trunk/gui/wxpython/gmodeler/model.py	2013-12-25 23:28:05 UTC (rev 58531)
@@ -2167,7 +2167,7 @@
                         value = '"' + value + '"'
                     cond = pattern.sub(value, cond)
             if isinstance(item, ModelLoop):
-                condVar, condText = map(lambda x: x.strip(), re.split('\s*in\s*', cond))
+                condVar, condText = map(lambda x: x.strip(), re.split('\s* in \s*', cond))
                 cond = "%sfor %s in " % (' ' * self.indent, condVar)
                 if condText[0] == '`' and condText[-1] == '`':
                     task = GUI(show = None).ParseCommand(cmd = utils.split(condText[1:-1]))



More information about the grass-commit mailing list