[GRASS-SVN] r39934 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 6 17:58:44 EST 2009


Author: cmbarton
Date: 2009-12-06 17:58:43 -0500 (Sun, 06 Dec 2009)
New Revision: 39934

Modified:
   grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
Fix so mapsets can be seen and selected. Backport from develbranch_6 r39933

Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2009-12-06 22:49:06 UTC (rev 39933)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2009-12-06 22:58:43 UTC (rev 39934)
@@ -133,9 +133,8 @@
         self.sizer.Fit(self)
 
     def OnElement(self, event):
-        """!Name for vector map layer given"""
+        """!Select mapset given location name"""
         location = event.GetString()
-        mapset   = self.element1.GetValue()
         
         if location:
             dbase = grass.gisenv()['GISDBASE']
@@ -150,7 +149,7 @@
 
     def GetValues(self):
         """!Get location, mapset"""
-        return (self.GetElement(), self.element1.GetValue())
+        return (self.GetElement(), self.element1.GetStringSelection())
     
 class MapsetDialog(ElementDialog):
     """!Dialog used to select mapset"""



More information about the grass-commit mailing list