[GRASS-SVN] r39158 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 12 17:59:19 EDT 2009
Author: martinl
Date: 2009-09-12 17:59:19 -0400 (Sat, 12 Sep 2009)
New Revision: 39158
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py
Log:
print warning for module with no keywords
(merge r39157 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py 2009-09-12 21:51:33 UTC (rev 39157)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menudata.py 2009-09-12 21:59:19 UTC (rev 39158)
@@ -29,6 +29,7 @@
"""
import os
+import sys
try:
import xml.etree.ElementTree as etree
except ImportError:
@@ -180,7 +181,9 @@
if module:
modules[module] = { 'desc': description,
'keywords' : keywords }
-
+ if len(keywords) < 1:
+ print >> sys.stderr, "WARNING: Module <%s> has no keywords" % module
+
return modules
if __name__ == "__main__":
More information about the grass-commit
mailing list