incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1181876 - /incubator/public/trunk/clutch.py
Date Tue, 11 Oct 2011 16:27:52 GMT
Author: sebb
Date: Tue Oct 11 16:27:51 2011
New Revision: 1181876

URL: http://svn.apache.org/viewvc?rev=1181876&view=rev
Log:
Merge the two passes through podlings.xml

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1181876&r1=1181875&r2=1181876&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Tue Oct 11 16:27:51 2011
@@ -246,8 +246,13 @@ def getText(nodelist):
 # Parse the podlings data file
 dom = xml.dom.minidom.parse("site-author/podlings.xml")
 
-print "Gather data from the projects-in-incubation table ..."
+graduatedProjects = {}
+
+print "Gather data from podlings.xml ..."
 for row in dom.getElementsByTagName("podling"):
+ if row.getAttribute("status") == 'graduated':
+  resource = row.getAttribute("resource")
+  graduatedProjects[resource.lower()] = True
  if row.getAttribute("status") == 'current':
   name = row.getAttribute("name")
   fileBaseName = row.getAttribute("resource")
@@ -291,13 +296,6 @@ for row in dom.getElementsByTagName("pod
   else:
     print 'ERROR: %s: row exists' % id
 
-print "Gather data from the projects-graduated table ..."
-graduatedProjects = {}
-for row in dom.getElementsByTagName("podling"):
-  if row.getAttribute("status") == 'graduated':
-    resource = row.getAttribute("resource")
-    graduatedProjects[resource.lower()] = True
-
 dom.unlink()
 
 print "Gather data from the graduating list ..."



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message