[GRASS-SVN] r44346 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 16 04:18:37 EST 2010
Author: martinl
Date: 2010-11-16 01:18:37 -0800 (Tue, 16 Nov 2010)
New Revision: 44346
Modified:
grass/trunk/gui/wxpython/gui_modules/gselect.py
grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: show all mapsets in MapsetSelect
(merge r44344 from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py 2010-11-16 09:15:30 UTC (rev 44345)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py 2010-11-16 09:18:37 UTC (rev 44346)
@@ -821,7 +821,7 @@
self.location = location
if setItems:
- self.SetItems(utils.GetListOfMapsets(self.gisdbase, self.location, selectable = True)) # selectable
+ self.SetItems(utils.GetListOfMapsets(self.gisdbase, self.location, selectable = False)) # selectable
def UpdateItems(self, location, dbase = None):
"""!Update list of mapsets for given location
@@ -833,7 +833,7 @@
self.gisdbase = dbase
self.location = location
if location:
- self.SetItems(utils.GetListOfMapsets(self.gisdbase, self.location, selectable = True))
+ self.SetItems(utils.GetListOfMapsets(self.gisdbase, self.location, selectable = False))
else:
self.SetItems([])
Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py 2010-11-16 09:15:30 UTC (rev 44345)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py 2010-11-16 09:18:37 UTC (rev 44346)
@@ -627,11 +627,9 @@
else:
for mapset in glob.glob(os.path.join(dbase, location, "*")):
if os.path.isdir(mapset) and \
- os.path.isfile(os.path.join(dbase, location, mapset, "WIND")) and \
- os.path.basename(mapset) != 'PERMANENT':
+ os.path.isfile(os.path.join(dbase, location, mapset, "WIND")):
listOfMapsets.append(EncodeString(os.path.basename(mapset)))
- listOfMapsets.insert(0, 'PERMANENT')
-
+
ListSortLower(listOfMapsets)
return listOfMapsets
More information about the grass-commit
mailing list