[GRASS-SVN] r35629 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 25 16:07:23 EST 2009
Author: martinl
Date: 2009-01-25 16:07:23 -0500 (Sun, 25 Jan 2009)
New Revision: 35629
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: move check for g.mlist to globalvar module
(merge from trunk, r35628)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py 2009-01-25 21:05:55 UTC (rev 35628)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py 2009-01-25 21:07:23 UTC (rev 35629)
@@ -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/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2009-01-25 21:05:55 UTC (rev 35628)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2009-01-25 21:07:23 UTC (rev 35629)
@@ -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