[GRASS-SVN] r44344 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 16 04:13:46 EST 2010
Author: martinl
Date: 2010-11-16 01:13:46 -0800 (Tue, 16 Nov 2010)
New Revision: 44344
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: show all mapsets in MapsetSelect
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2010-11-15 23:00:01 UTC (rev 44343)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2010-11-16 09:13:46 UTC (rev 44344)
@@ -780,7 +780,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
@@ -792,7 +792,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/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2010-11-15 23:00:01 UTC (rev 44343)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2010-11-16 09:13:46 UTC (rev 44344)
@@ -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