[GRASS-SVN] r37811 - grass/trunk/gui/wxpython/support
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 10 16:19:06 EDT 2009
Author: martinl
Date: 2009-06-10 16:19:06 -0400 (Wed, 10 Jun 2009)
New Revision: 37811
Modified:
grass/trunk/gui/wxpython/support/update_menudata.py
Log:
print modules which are not available from menu
Modified: grass/trunk/gui/wxpython/support/update_menudata.py
===================================================================
--- grass/trunk/gui/wxpython/support/update_menudata.py 2009-06-10 20:12:24 UTC (rev 37810)
+++ grass/trunk/gui/wxpython/support/update_menudata.py 2009-06-10 20:19:06 UTC (rev 37811)
@@ -61,7 +61,7 @@
ignore = [ 'v.type_wrapper.py',
'vcolors' ]
-
+ menu_modules = []
for node in data.tree.getiterator():
if node.tag != 'menuitem':
continue
@@ -95,6 +95,12 @@
grass.warning("Adding tag 'keywords' to '%s'" % module)
node.find('keywords').text = ','.join(modules[module]['keywords'])
+ menu_modules.append(item['command'])
+
+ for module in modules.keys():
+ if module not in menu_modules:
+ grass.warning("'%s' not available from the menu" % module)
+
def writeData(data):
"""!Write updated menudata.xml"""
file = os.path.join('..', 'xml', 'menudata.xml')
More information about the grass-commit
mailing list