incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1348366 - in /incubator/public/trunk: clutch-graduating.txt clutch.py content/podlings.dtd content/podlings.xml
Date Sat, 09 Jun 2012 12:00:22 GMT
Author: sebb
Date: Sat Jun  9 12:00:22 2012
New Revision: 1348366

URL: http://svn.apache.org/viewvc?rev=1348366&view=rev
Log:
Move graduating marker into podlings.xml

Removed:
    incubator/public/trunk/clutch-graduating.txt
Modified:
    incubator/public/trunk/clutch.py
    incubator/public/trunk/content/podlings.dtd
    incubator/public/trunk/content/podlings.xml

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1348366&r1=1348365&r2=1348366&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sat Jun  9 12:00:22 2012
@@ -34,7 +34,6 @@ Note: The 'svn log' queries might only r
 '''
 External input data files used:
 - SITE_CONTENT/podlings.xml
-- clutch-graduating.txt
 
 URLs
 http://wiki.apache.org/incubator/ReportingSchedule?action=raw
@@ -295,6 +294,7 @@ dom = xml.dom.minidom.parse(SITE_CONTENT
 
 graduatedProjects = {}
 history = {}
+graduates = []
 
 print("Gather data from podlings.xml ...")
 for row in dom.getElementsByTagName("podling"):
@@ -314,6 +314,8 @@ for row in dom.getElementsByTagName("pod
       projects[id]['resourceNames'].append(alias)
   fileBaseName = row.getAttribute("resource")
   sponsor = row.getAttribute("sponsor")
+  if row.getElementsByTagName("graduating").length > 0:
+    graduates.append(id)
   description = getText(row.getElementsByTagName("description"))
   mentors = [mentor.firstChild.data.strip() for mentor in row.getElementsByTagName("mentor")]
 
@@ -356,15 +358,6 @@ for row in dom.getElementsByTagName("pod
 
 dom.unlink()
 
-print("Gather data from the graduating list ...")
-graduates = []
-inputFile = open('clutch-graduating.txt', 'r')
-for line in inputFile:
-  if '#' not in line:
-    if re.match('^[a-z-]+$', line):
-      graduates.append(line.rstrip())
-inputFile.close()
-
 # Process the incubation table data, detect some potential issues.
 print("Gather details from project status files ...")
 projectNames = list(projectsTable.keys())

Modified: incubator/public/trunk/content/podlings.dtd
URL: http://svn.apache.org/viewvc/incubator/public/trunk/content/podlings.dtd?rev=1348366&r1=1348365&r2=1348366&view=diff
==============================================================================
--- incubator/public/trunk/content/podlings.dtd (original)
+++ incubator/public/trunk/content/podlings.dtd Sat Jun  9 12:00:22 2012
@@ -18,7 +18,7 @@
 <!--  DTD for podlings.xml -->
 <!ELEMENT podlings (podling+)>
 
-<!ELEMENT podling (description, resolution?, champion?, mentors)>
+<!ELEMENT podling (description, graduating?, resolution?, champion?, mentors)>
 <!ATTLIST podling name CDATA #REQUIRED>
 <!ATTLIST podling longname CDATA #IMPLIED>
 <!ATTLIST podling status (current|graduated|dormant|retired) #REQUIRED>
@@ -31,6 +31,8 @@
 <!-- Format yyyy-mm-dd -->
 <!ATTLIST podling enddate CDATA #IMPLIED>
 
+<!-- optional empty element used to flag graduating podlings -->
+<!ELEMENT graduating >
 <!ELEMENT mentors (mentor+)>
 <!ELEMENT mentor  (#PCDATA)  >
 <!ELEMENT description  (#PCDATA)  >

Modified: incubator/public/trunk/content/podlings.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/content/podlings.xml?rev=1348366&r1=1348365&r2=1348366&view=diff
==============================================================================
--- incubator/public/trunk/content/podlings.xml [utf-8] (original)
+++ incubator/public/trunk/content/podlings.xml [utf-8] Sat Jun  9 12:00:22 2012
@@ -443,6 +443,7 @@
     </podling>
     <podling name="Flume" status="current" resource="flume" sponsor="Incubator" startdate="2011-06-13">
         <description>Flume is a distributed, reliable, and available system for efficiently
collecting, aggregating, and moving large amounts of log data from many different sources
to a centralized data store.</description>
+        <graduating/>
         <mentors>
             <mentor>Nigel Daley</mentor>
             <mentor>Ralph Goers</mentor>



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


Mime
View raw message