[GRASS-SVN] r39508 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 13 09:42:14 EDT 2009
Author: martinl
Date: 2009-10-13 09:42:11 -0400 (Tue, 13 Oct 2009)
New Revision: 39508
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: fix CmdToTuple() - continued
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2009-10-13 11:40:56 UTC (rev 39507)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2009-10-13 13:42:11 UTC (rev 39508)
@@ -426,10 +426,15 @@
if cmd[1].has_key('flags'):
for flag in cmd[1]['flags']:
scmd += ' -' + flag
+ for flag in ('verbose', 'quiet', 'overwrite'):
+ if cmd[1].has_key(flag) and cmd[1][flag] is True:
+ scmd += ' --' + flag
+
for k, v in cmd[1].iteritems():
- if k != 'flags':
- scmd += ' %s=%s' % (k, v)
-
+ if k in ('flags', 'verbose', 'quiet', 'overwrite'):
+ continue
+ scmd += ' %s=%s' % (k, v)
+
return scmd
def CmdToTuple(cmd):
More information about the grass-commit
mailing list