[GRASS-SVN] r39715 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 12 18:08:16 EST 2009


Author: martinl
Date: 2009-11-12 18:08:15 -0500 (Thu, 12 Nov 2009)
New Revision: 39715

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
fix trac #808
   (merge r39713 from devbr6)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-11-12 23:05:09 UTC (rev 39714)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2009-11-12 23:08:15 UTC (rev 39715)
@@ -713,7 +713,10 @@
         self.parent = parent # LayerTree | None
 
         # module name + keywords
-        title = self.task.name.rstrip('.py').rstrip('.sh')
+        if self.task.name.split('.')[-1] in ('py', 'sh'):
+            title = self.task.name.split('.')[:-1]
+        else:
+            title = self.task.name
         try:
             title +=  " [" + ', '.join( self.task.keywords ) + "]"
         except ValueError:



More information about the grass-commit mailing list