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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 13 07:40:58 EDT 2009


Author: martinl
Date: 2009-10-13 07:40:56 -0400 (Tue, 13 Oct 2009)
New Revision: 39507

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: fix cmdToTuple()


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2009-10-13 10:59:33 UTC (rev 39506)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2009-10-13 11:40:56 UTC (rev 39507)
@@ -1,4 +1,4 @@
-"""
+"""!
 @package render
 
 Rendering map layers and overlays into map composition image
@@ -9,15 +9,14 @@
  - Overlay
  - Map
 
-C) 2006-2008 by the GRASS Development Team
+(C) 2006-2009 by the GRASS Development Team
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
 for details.
 
- at author Michael Barton, Jachym Cepicky,
-Martin Landa <landa.martin gmail.com>
-
- at date 2006-2008
+ at author Michael Barton
+ at author Jachym Cepicky,
+ at author Martin Landa <landa.martin gmail.com>
 """
 
 import os

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py	2009-10-13 10:59:33 UTC (rev 39506)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py	2009-10-13 11:40:56 UTC (rev 39507)
@@ -439,9 +439,13 @@
         
     dcmd = {}
     for item in cmd[1:]:
-        if '=' in item:
+        if '=' in item: # params
             key, value = item.split('=', 1)
             dcmd[str(key)] = str(value)
+        elif item[:2] == '--': # long flags
+            flag = item[2:]
+            if flag in ('verbose', 'quiet', 'overwrite'):
+                dcmd[str(flag)] = True
         else: # -> flags
             if not dcmd.has_key('flags'):
                 dcmd['flags'] = ''



More information about the grass-commit mailing list