incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1617006 - /incubator/public/trunk/clutch.py
Date Sat, 09 Aug 2014 19:06:29 GMT
Author: sebb
Date: Sat Aug  9 19:06:28 2014
New Revision: 1617006

URL: http://svn.apache.org/r1617006
Log:
Rename to reflect contents

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1617006&r1=1617005&r2=1617006&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sat Aug  9 19:06:28 2014
@@ -211,7 +211,7 @@ inputFile.close()
 dom = xml.dom.minidom.parse(SITE_CONTENT_DIR + "podlings.xml")
 
 graduatedProjects = {}
-graduates = []
+graduatingOrRetiring = []
 
 print("Gather data from podlings.xml ...")
 for row in dom.getElementsByTagName("podling"):
@@ -298,7 +298,7 @@ for row in dom.getElementsByTagName("pod
 
       isGraduating = row.getElementsByTagName("graduating").length > 0
       if isGraduating:
-        graduates.append(id)
+        graduatingOrRetiring.append(id)
         if not row.getAttribute("endDate"):
           errorMsg = "{0}: Has graduated, but still needs to follow the graduation steps.".format(id)
           print('ERROR:', errorMsg)
@@ -307,7 +307,7 @@ for row in dom.getElementsByTagName("pod
 
       isRetiring = row.getElementsByTagName("retiring").length > 0
       if isRetiring:
-        graduates.append(id)
+        graduatingOrRetiring.append(id)
         if not row.getAttribute("endDate"):
           errorMsg = "{0}: Has retired, but still needs to follow the retirement steps.".format(id)
           print('ERROR:', errorMsg)
@@ -982,7 +982,7 @@ for k in sorted(projectNames, key=str.lo
     fileXml.write("<!-- generated by clutch; do not edit -->\n")
   fileXml.write('        <tr id="{0}">\n'.format(k))
   fileXml.write('          <td')
-  if k in graduates:
+  if k in graduatingOrRetiring:
     fileXml.write(' class="grad"')
   fileXml.write('>{0}</td>\n'.format(projects[k]['fullName']))
   persist[k] = {}



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


Mime
View raw message