[GRASS-SVN] r48632 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 5 04:44:51 EDT 2011
Author: martinl
Date: 2011-10-05 01:44:51 -0700 (Wed, 05 Oct 2011)
New Revision: 48632
Modified:
grass/trunk/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/modeler: fix valid check
Modified: grass/trunk/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-05 08:37:04 UTC (rev 48631)
+++ grass/trunk/gui/wxpython/gui_modules/gmodeler.py 2011-10-05 08:44:51 UTC (rev 48632)
@@ -1348,7 +1348,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