[GRASS-SVN] r35628 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 25 16:05:55 EST 2009
Author: martinl
Date: 2009-01-25 16:05:55 -0500 (Sun, 25 Jan 2009)
New Revision: 35628
Modified:
grass/trunk/gui/wxpython/gui_modules/globalvar.py
grass/trunk/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: move check for g.mlist to globalvar module
Modified: grass/trunk/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/globalvar.py 2009-01-25 21:02:24 UTC (rev 35627)
+++ grass/trunk/gui/wxpython/gui_modules/globalvar.py 2009-01-25 21:05:55 UTC (rev 35628)
@@ -139,3 +139,9 @@
"""@Toolbar icon size"""
toolbarSize = (24, 24)
+
+"""@Is g.mlist available?"""
+if 'g.mlist' in grassCmd['all']:
+ have_mlist = True
+else:
+ have_mlist = False
Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py 2009-01-25 21:02:24 UTC (rev 35627)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py 2009-01-25 21:05:55 UTC (rev 35628)
@@ -213,7 +213,7 @@
mapsets[i] = mapsets[0]
mapsets[0] = curr_mapset
- if 'g.mlist' in globalvar.grassCmd['all']:
+ if globalvar.have_mlist:
filesdict = grass.mlist_grouped(elementdict[element])
else:
filesdict = grass.list_grouped(elementdict[element])
More information about the grass-commit
mailing list