[GRASS-SVN] r50067 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 4 12:40:13 EST 2012


Author: martinl
Date: 2012-01-04 09:40:13 -0800 (Wed, 04 Jan 2012)
New Revision: 50067

Modified:
   grass/trunk/gui/wxpython/modules/extensions.py
Log:
wxGUI/extension: fix if no metadata available (g.extension -g)

Modified: grass/trunk/gui/wxpython/modules/extensions.py
===================================================================
--- grass/trunk/gui/wxpython/modules/extensions.py	2012-01-04 17:30:32 UTC (rev 50066)
+++ grass/trunk/gui/wxpython/modules/extensions.py	2012-01-04 17:40:13 UTC (rev 50067)
@@ -55,7 +55,7 @@
         
         self.repo = wx.TextCtrl(parent = self.panel, id = wx.ID_ANY)
         self.fullDesc = wx.CheckBox(parent = self.panel, id = wx.ID_ANY,
-                                    label = _("Fetch full info including description and keywords (takes time)"))
+                                    label = _("Fetch full info including description and keywords"))
         self.fullDesc.SetValue(True)
         
         self.search = SearchModuleWindow(parent = self.panel)
@@ -68,8 +68,8 @@
         if sys.platform == 'win32':
             task = gtask.parse_interface('g.extension.py')
         else:
-            task = gtask.parse_interface('g.extension.py')
-        ignoreFlags = ['l', 'c', 'g', 'a', 'f', 'quiet', 'verbose']
+            task = gtask.parse_interface('g.extension')
+        ignoreFlags = ['l', 'c', 'g', 'a', 'f', 't', 'quiet', 'verbose']
         if sys.platform == 'win32':
             ignoreFlags.append('d')
             ignoreFlags.append('i')
@@ -236,7 +236,7 @@
         item = event.GetItem()
         self.tree.itemSelected = item
         data = self.tree.GetPyData(item)
-        if not data:
+        if data is None:
             self.SetStatusText('', 0)
             self.btnInstall.Enable(False)
         else:
@@ -330,7 +330,9 @@
                 try:
                     key, value = line.split('=', 1)
                 except ValueError:
-                    continue
+                    key = 'name'
+                    value = line
+                
                 if key == 'name':
                     try:
                         prefix, name = value.split('.', 1)



More information about the grass-commit mailing list