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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 25 14:58:38 PST 2013


Author: martinl
Date: 2013-12-25 14:58:38 -0800 (Wed, 25 Dec 2013)
New Revision: 58530

Modified:
   grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: fix loop condition handling (quick fix, work in progress)


Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py	2013-12-25 22:36:08 UTC (rev 58529)
+++ grass/trunk/gui/wxpython/gmodeler/model.py	2013-12-25 22:58:38 UTC (rev 58530)
@@ -637,7 +637,8 @@
                         cond = pattern.sub(value, cond)
                 
                 # split condition
-                condVar, condText = map(lambda x: x.strip(), re.split('\s*in\s*', cond))
+                ### TODO: this part needs some better solution
+                condVar, condText = map(lambda x: x.strip(), re.split('\s* in \s*', cond))
                 pattern = re.compile('%' + condVar)
                 ### for vars()[condVar] in eval(condText): ?
                 vlist = list()



More information about the grass-commit mailing list