httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1638273 - /httpd/mod_mbox/trunk/scripts/site-index.py
Date Tue, 11 Nov 2014 19:08:49 GMT
Author: humbedooh
Date: Tue Nov 11 19:08:49 2014
New Revision: 1638273

URL: http://svn.apache.org/r1638273
Log:
podlings.xml have moved off-site, read from URL instead.

Modified:
    httpd/mod_mbox/trunk/scripts/site-index.py

Modified: httpd/mod_mbox/trunk/scripts/site-index.py
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/scripts/site-index.py?rev=1638273&r1=1638272&r2=1638273&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/scripts/site-index.py (original)
+++ httpd/mod_mbox/trunk/scripts/site-index.py Tue Nov 11 19:08:49 2014
@@ -1,5 +1,6 @@
 #!/usr/local/bin/python
 
+import urllib
 import xml.etree.cElementTree as ET
 import os
 import sys
@@ -9,7 +10,9 @@ ROOT="/x1/mail-archives/mod_mbox"
 # Get the list of podlings from a list the Incubator PMC maintains.
 def _get_podlings():
   rv = set()
-  root = ET.parse('/www/incubator.apache.org/content/podlings.xml').getroot()
+  u = urllib.urlopen("http://incubator.apache.org/podlings.xml")
+  string = u.read()
+  root = ET.fromstring(string)
   for e in root:
     if e.get('status') == 'graduated':
       continue



Mime
View raw message