Return-Path: X-Original-To: apmail-community-commits-archive@minotaur.apache.org Delivered-To: apmail-community-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9553918B03 for ; Fri, 30 Oct 2015 16:43:14 +0000 (UTC) Received: (qmail 58778 invoked by uid 500); 30 Oct 2015 16:43:14 -0000 Delivered-To: apmail-community-commits-archive@community.apache.org Received: (qmail 58755 invoked by uid 500); 30 Oct 2015 16:43:14 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 58742 invoked by uid 99); 30 Oct 2015 16:43:14 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 16:43:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 137BC1809A6 for ; Fri, 30 Oct 2015 16:43:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.99 X-Spam-Level: X-Spam-Status: No, score=0.99 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 7tjt0z135kzH for ; Fri, 30 Oct 2015 16:43:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id DFF6F20751 for ; Fri, 30 Oct 2015 16:43:03 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E9F11E04C1 for ; Fri, 30 Oct 2015 16:43:02 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id C645E3A0A14 for ; Fri, 30 Oct 2015 16:43:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1711504 - /comdev/reporter.apache.org/trunk/site/getjson.py Date: Fri, 30 Oct 2015 16:43:02 -0000 To: commits@community.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151030164302.C645E3A0A14@svn01-us-west.apache.org> Author: sebb Date: Fri Oct 30 16:43:02 2015 New Revision: 1711504 URL: http://svn.apache.org/viewvc?rev=1711504&view=rev Log: Docs 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=1711504&r1=1711503&r2=1711504&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/getjson.py (original) +++ comdev/reporter.apache.org/trunk/site/getjson.py Fri Oct 30 16:43:02 2015 @@ -194,6 +194,18 @@ def getJIRAS(project): # json.dump([0,0,None], f, indent=1) # f.close() return 0,0, None +""" +Reads: + - PAOHOME+"site/json/projects/%s.json" % project + - PAOHOME+"site/json/foundation/pmcs.json" + - PAOHOME+"site/json/foundation/chairs.json" + +@return: + - contents of projects/%.json % project if it exists + in any case, dict contains pmc name & chair extracted from pmcs.json/chairs.json + - list of project names in pmcs.json + - health entry from data/health.json +""" def getProjectData(project): try: @@ -235,7 +247,7 @@ def getProjectData(project): for entry in h: if entry['group'] == project: z = entry - return x,y,z + return x, y, z; def getReleaseData(project): """Reads data/releases/%s.json and returns the contents"""