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/10/16 18:38:08 UTC
svn commit: r1868516 -
/comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py
Author: humbedooh
Date: Wed Oct 16 18:38:08 2019
New Revision: 1868516
URL: http://svn.apache.org/viewvc?rev=1868516&view=rev
Log:
fixups for webservices pmc (ldap != hostname)
Modified:
comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py
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=1868516&r1=1868515&r2=1868516&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/rapp/whimsy.py Wed Oct 16 18:38:08 2019
@@ -108,6 +108,8 @@ def agenda_forced(environ, user):
def agenda(environ, user):
""" Returns data on the board report for a project, IF present and/or filed in the current agenda """
project = environ.get('QUERY_STRING')
+ # Kludge for webservices
+ project = pdata.ldapmap.get(project, project)
report = None
_txtfile, url = latest_agenda(environ)
if has_access(user, project):
@@ -185,6 +187,8 @@ def publish(environ, _user):
digest = js.get('digest')
attach = js.get('attach')
print(project, agenda)
+ # Kludge for webservices
+ project = pdata.ldapmap.get(project, project)
if agenda and project and report:
message = "Publishing report for %s via Reporter" % project
payload = {