[GRASS-SVN] r48633 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 5 04:46:53 EDT 2011


Author: martinl
Date: 2011-10-05 01:46:52 -0700 (Wed, 05 Oct 2011)
New Revision: 48633

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: fix valid check
	       (merge r48632 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-05 08:44:51 UTC (rev 48632)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-10-05 08:46:52 UTC (rev 48633)
@@ -1354,7 +1354,7 @@
             # valid ?
             valid = True
             for p in params['params']:
-                if p.get('required', 'no') != 'no' and \
+                if p.get('required', False) and \
                         p.get('value', '') == '' and \
                         p.get('default', '') == '':
                     valid = False



More information about the grass-commit mailing list