[GRASS-SVN] r50068 - grass/branches/develbranch_6/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 4 12:42:09 EST 2012


Author: martinl
Date: 2012-01-04 09:42:09 -0800 (Wed, 04 Jan 2012)
New Revision: 50068

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


Modified: grass/branches/develbranch_6/gui/wxpython/modules/extensions.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/modules/extensions.py	2012-01-04 17:40:13 UTC (rev 50067)
+++ grass/branches/develbranch_6/gui/wxpython/modules/extensions.py	2012-01-04 17:42:09 UTC (rev 50068)
@@ -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)
@@ -234,7 +234,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:
@@ -328,7 +328,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