[GRASS-SVN] r50070 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 4 12:50:07 EST 2012
Author: martinl
Date: 2012-01-04 09:50:07 -0800 (Wed, 04 Jan 2012)
New Revision: 50070
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py
Log:
wxGUI/extension: fix if no metadata available (g.extension -g)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py 2012-01-04 17:44:21 UTC (rev 50069)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py 2012-01-04 17:50:07 UTC (rev 50070)
@@ -802,7 +802,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)
@@ -981,7 +981,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:
@@ -1072,7 +1072,12 @@
mdict = dict()
for line in ret.splitlines():
if full:
- key, value = line.split('=', 1)
+ try:
+ key, value = line.split('=', 1)
+ except ValueError:
+ key = 'name'
+ value = line
+
if key == 'name':
try:
prefix, name = value.split('.', 1)
More information about the grass-commit
mailing list