Sfoglia il codice sorgente

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 11 anni fa
parent
commit
195fb5b3fc
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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()