[GRASS-SVN] r39157 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 12 17:51:33 EDT 2009
Author: martinl
Date: 2009-09-12 17:51:33 -0400 (Sat, 12 Sep 2009)
New Revision: 39157
Modified:
grass/trunk/gui/wxpython/gui_modules/menudata.py
Log:
print warning for module with no keywords
Modified: grass/trunk/gui/wxpython/gui_modules/menudata.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menudata.py 2009-09-12 21:17:53 UTC (rev 39156)
+++ grass/trunk/gui/wxpython/gui_modules/menudata.py 2009-09-12 21:51:33 UTC (rev 39157)
@@ -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