Explorar o código

wxGUI/modeler: fix loop condition handling (quick fix, work in progress)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58530 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=11) %!d(string=hai) anos
pai
achega
195fb5b3fc
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      gui/wxpython/gmodeler/model.py

+ 2 - 1
gui/wxpython/gmodeler/model.py

@@ -637,7 +637,8 @@ class Model(object):
                         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()