You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/02 06:43:56 UTC
svn commit: r1864200 - /comdev/reporter.apache.org/trunk/site/getjson.py
Author: humbedooh
Date: Fri Aug 2 06:43:55 2019
New Revision: 1864200
URL: http://svn.apache.org/viewvc?rev=1864200&view=rev
Log:
Fetch TLP charters from projects.a.o
Modified:
comdev/reporter.apache.org/trunk/site/getjson.py
Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1864200&r1=1864199&r2=1864200&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Fri Aug 2 06:43:55 2019
@@ -46,6 +46,7 @@ RAOHOME = '../'
COMMITTER_INFO = 'https://whimsy.apache.org/public/public_ldap_people.json'
MEMBER_INFO = 'https://whimsy.apache.org/public/member-info.json'
PROJECTS = 'https://whimsy.apache.org/public/public_ldap_projects.json'
+DESCRIPTIONS = 'https://projects.apache.org/json/foundation/committees.json'
# Pick up environment settings
form = cgi.FieldStorage();
@@ -102,6 +103,7 @@ def loadJson(url):
projects = loadJson(PROJECTS)['projects']
members = loadJson(MEMBER_INFO)['members']
committers = loadJson(COMMITTER_INFO)['people']
+charters = loadJson(DESCRIPTIONS)
def getPMCs(uid):
"""Returns the array of LDAP committee groups to which the uid belongs. Excludes incubator"""
@@ -223,6 +225,9 @@ def getProjectData(project):
for entry in dataHealth:
if entry['group'] == project:
z = entry
+ for xtlp in charters:
+ if xtlp.get('id') == project:
+ x['charter'] = xtlp.get('charter', '')
return x, y, z;
def getReleaseData(project):