[GRASS-SVN] r54339 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 18 13:07:57 PST 2012


Author: martinl
Date: 2012-12-18 13:07:56 -0800 (Tue, 18 Dec 2012)
New Revision: 54339

Modified:
   grass/trunk/gui/wxpython/iclass/dialogs.py
   grass/trunk/gui/wxpython/iclass/frame.py
Log:
wxGUI/IClass: use non-qualified group name (group must be placed in the current mapset)


Modified: grass/trunk/gui/wxpython/iclass/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/dialogs.py	2012-12-18 20:17:12 UTC (rev 54338)
+++ grass/trunk/gui/wxpython/iclass/dialogs.py	2012-12-18 21:07:56 UTC (rev 54339)
@@ -408,11 +408,11 @@
         env = grass.gisenv()
         
         # inconsistent group and subgroup name
-        # path: grassdata/nc_spm_08/landsat/group/test_group/subgroup/test_group at landsat/sig/sigFile
+        # path: grassdata/nc_spm_08/landsat/group/test_group/subgroup/test_group/sig/sigFile
         self.baseFilePath = os.path.join(env['GISDBASE'],
                                          env['LOCATION_NAME'],
                                          env['MAPSET'],
-                                         'group', group.split('@')[0], # !
+                                         'group', group,
                                          'subgroup', group,
                                          'sig')
         self.panel = wx.Panel(parent = self, id = wx.ID_ANY)

Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py	2012-12-18 20:17:12 UTC (rev 54338)
+++ grass/trunk/gui/wxpython/iclass/frame.py	2012-12-18 21:07:56 UTC (rev 54339)
@@ -421,8 +421,8 @@
         dlg = IClassGroupDialog(self, group = self.group)
         if dlg.ShowModal() == wx.ID_OK:
             group = grass.find_file(name = dlg.GetGroup(), element = 'group')
-            if group['fullname']:
-                self.group = group['fullname']
+            if group['name']:
+                self.group = group['name']
                 
         dlg.Destroy()
         



More information about the grass-commit mailing list