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 9B07418C9A for ; Wed, 7 Oct 2015 19:46:28 +0000 (UTC) Received: (qmail 41876 invoked by uid 500); 7 Oct 2015 19:46:28 -0000 Delivered-To: apmail-community-commits-archive@community.apache.org Received: (qmail 41851 invoked by uid 500); 7 Oct 2015 19:46:28 -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 41842 invoked by uid 99); 7 Oct 2015 19:46:28 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 19:46:28 +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 A785C180E53 for ; Wed, 7 Oct 2015 19:46:27 +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-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PzYZ8PnC0ddX for ; Wed, 7 Oct 2015 19:46:27 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 63B4F42B7B for ; Wed, 7 Oct 2015 19:46:27 +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 F091BE0339 for ; Wed, 7 Oct 2015 19:46:26 +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 EDFAA3A02E5 for ; Wed, 7 Oct 2015 19:46:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1707374 - /comdev/reporter.apache.org/trunk/site/getjson.py Date: Wed, 07 Oct 2015 19:46:26 -0000 To: commits@community.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151007194626.EDFAA3A02E5@svn01-us-west.apache.org> Author: sebb Date: Wed Oct 7 19:46:26 2015 New Revision: 1707374 URL: http://svn.apache.org/viewvc?rev=1707374&view=rev Log: Allow easier testing via CLI 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=1707374&r1=1707373&r2=1707374&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/getjson.py (original) +++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Oct 7 19:46:26 2015 @@ -31,7 +31,7 @@ import os, sys, re, json, subprocess, ti import base64, urllib2, cgi form = cgi.FieldStorage(); -oproject = form['only'].value if ('only' in form and len(form['only'].value) > 0) else None +oproject = form['only'].value if ('only' in form and len(form['only'].value) > 0) else os.environ['ONLY'] if 'ONLY' in os.environ else None jmap = {