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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 3 13:53:44 PST 2013


Author: martinl
Date: 2013-11-03 13:53:44 -0800 (Sun, 03 Nov 2013)
New Revision: 58148

Modified:
   grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/gmodeler: fix loops in python export


Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py	2013-11-03 21:51:31 UTC (rev 58147)
+++ grass/trunk/gui/wxpython/gmodeler/model.py	2013-11-03 21:53:44 UTC (rev 58148)
@@ -2134,7 +2134,7 @@
                     cond += condText
                 self.fd.write('%s:\n' % cond)
                 self.indent += 4
-                for action in item.GetItems():
+                for action in item.GetItems(self.model.GetItems(objType=ModelAction)):
                     self._writePythonItem(action, ignoreBlock = False, variables = [condVar])
                 self.indent -= 4
             else: # ModelCondition



More information about the grass-commit mailing list