community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1871650 - in /comdev/reporter.apache.org/trunk/scripts/rapp: overview.py whimsy.py
Date Mon, 16 Dec 2019 11:07:47 GMT
Author: humbedooh
Date: Mon Dec 16 11:07:47 2019
New Revision: 1871650

URL: http://svn.apache.org/viewvc?rev=1871650&view=rev
Log:
Weave in whether reports have been filed or not in the overview.

Modified:
    comdev/reporter.apache.org/trunk/scripts/rapp/overview.py
    comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py

Modified: comdev/reporter.apache.org/trunk/scripts/rapp/overview.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/rapp/overview.py?rev=1871650&r1=1871649&r2=1871650&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/rapp/overview.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/rapp/overview.py Mon Dec 16 11:07:47 2019
@@ -7,6 +7,7 @@ import pdata
 import time
 import re
 import committee_info
+import whimsy
 
 CACHE_TIMEOUT = 14400
 
@@ -46,6 +47,13 @@ def run(environ, user):
             if k == 'kibble' and v:
                 dumps['kibble'] =v
     
+    
+    # Check for filed reports
+    dumps['filed'] = {}
+    for k in dumps.get('pmcs', []):
+        f = whimsy.agenda(environ, user, k)
+        dumps['filed'][k] = f.get('filed', False)
+    
     # Set personalized vars, dump
     if dumps and user:
         _ddata, allpmcs, _health = pdata.getProjectData()

Modified: comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py?rev=1871650&r1=1871649&r2=1871650&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py Mon Dec 16 11:07:47 2019
@@ -105,9 +105,9 @@ def agenda_forced(environ, user):
     get_whimsy(url, environ, ttl = 0)
     return agenda(environ, user)
 
-def agenda(environ, user):
+def agenda(environ, user, fproject = None):
     """ Returns data on the board report for a project, IF present and/or filed in the current
agenda """
-    project = environ.get('QUERY_STRING')
+    project = fproject or environ.get('QUERY_STRING')
     # Kludge for webservices
     project = pdata.ldapmap.get(project, project)
     report = None



Mime
View raw message