[GRASS-SVN] r68040 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 12 07:18:43 PST 2016


Author: martinl
Date: 2016-03-12 07:18:43 -0800 (Sat, 12 Mar 2016)
New Revision: 68040

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: do not force fully qualified map names (keep it on the user, forcing can cause problems to the modeler)

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2016-03-11 07:53:22 UTC (rev 68039)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2016-03-12 15:18:43 UTC (rev 68040)
@@ -2478,20 +2478,6 @@
                                        { 'cmd' : cmd[0],
                                          'key' : key })
                         continue
-                    multiple = task['multiple']
-                    element = task['element']
-                    # to filter out g.copy, g.rename
-                    key_desc = task['key_desc']
-                    # do we need to find mapset for each of multiple maps?
-                    if element in ['cell', 'vector'] and not multiple and len(key_desc) != 2:
-                        # mapname -> mapname at mapset
-                        try:
-                            name, mapset = value.split('@')
-                        except ValueError:
-                            mapset = grass.find_file(value, element)['mapset']
-                            curr_mapset = grass.gisenv()['MAPSET']
-                            if mapset and mapset !=  curr_mapset:
-                                value = value + '@' + mapset
                     
                     self.grass_task.set_param(key, value)
                     cmd_validated.append(key + '=' + value)



More information about the grass-commit mailing list