[GRASS-SVN] r47750 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 18 12:23:18 EDT 2011
Author: martinl
Date: 2011-08-18 09:23:18 -0700 (Thu, 18 Aug 2011)
New Revision: 47750
Modified:
grass/trunk/gui/wxpython/gui_modules/ghelp.py
Log:
wxGUI: fix contributors page (todo: sort by names)
Modified: grass/trunk/gui/wxpython/gui_modules/ghelp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/ghelp.py 2011-08-18 15:58:41 UTC (rev 47749)
+++ grass/trunk/gui/wxpython/gui_modules/ghelp.py 2011-08-18 16:23:18 UTC (rev 47750)
@@ -669,16 +669,16 @@
contribfile = os.path.join(os.getenv("GISBASE"), "contributors.csv")
if os.path.exists(contribfile):
contribFile = codecs.open(contribfile, encoding = 'utf-8', mode = 'r')
- contribs = dict()
+ contribs = list()
errLines = list()
- for line in contribFile.readlines():
+ for line in contribFile.readlines()[1:]:
line = line.rstrip('\n')
try:
cvs_id, name, email, country, osgeo_id, rfc2_agreed = line.split(',')
except ValueError:
errLines.append(line)
continue
- contribs[osgeo_id] = [name, email, country]
+ contribs.append((name, email, country, osgeo_id))
contribFile.close()
if errLines:
@@ -705,8 +705,8 @@
for item in (_('Name'), _('E-mail'), _('Country'), _('OSGeo_ID')):
contribBox.Add(item = wx.StaticText(parent = contribwin, id = wx.ID_ANY,
label = item))
- for osgeo_id in sorted(contribs.keys()):
- for item in contribs[osgeo_id] + [osgeo_id]:
+ for vals in contribs:
+ for item in vals:
contribBox.Add(item = wx.StaticText(parent = contribwin, id = wx.ID_ANY,
label = item))
contribwin.sizer.Add(item = contribBox, proportion = 1,
More information about the grass-commit
mailing list