community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728871 - /comdev/reporter.apache.org/trunk/site/chi.py
Date Sat, 06 Feb 2016 19:07:15 GMT
Author: sebb
Date: Sat Feb  6 19:07:15 2016
New Revision: 1728871

URL: http://svn.apache.org/viewvc?rev=1728871&view=rev
Log:
Unused

Modified:
    comdev/reporter.apache.org/trunk/site/chi.py

Modified: comdev/reporter.apache.org/trunk/site/chi.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/chi.py?rev=1728871&r1=1728870&r2=1728871&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/chi.py (original)
+++ comdev/reporter.apache.org/trunk/site/chi.py Sat Feb  6 19:07:15 2016
@@ -24,21 +24,6 @@ ldapmap = {
     'webservices': 'ws'
 }
 
-jirapass = ""
-with open("/var/www/reporter.apache.org/data/jirapass.txt", "r") as f:
-    jirapass = f.read().strip()
-    f.close()
-
-def isMember(uid):
-    members = []
-    ldapdata = subprocess.check_output(['ldapsearch', '-x', '-LLL', '-b', 'cn=member,ou=groups,dc=apache,dc=org'])
-    for match in re.finditer(r"memberUid: ([-a-z0-9_.]+)", ldapdata):
-        group = match.group(1)
-        members.append(group)
-    if uid in members:
-        return True
-    return False
-
 
 def getProjectData(project):
     try:



Mime
View raw message