incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r1534042 - in /incubator/public/trunk: clutch.py content/podlings.dtd content/podlings.xml
Date Mon, 21 Oct 2013 07:00:28 GMT
Author: crossley
Date: Mon Oct 21 07:00:27 2013
New Revision: 1534042

URL: http://svn.apache.org/r1534042
Log:
Enable a "retiring" flag (like "graduating") for projects that are in the exit process.

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=1534042&r1=1534041&r2=1534042&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Mon Oct 21 07:00:27 2013
@@ -300,6 +300,15 @@ for row in dom.getElementsByTagName("pod
           print('ERROR:', errorMsg)
           errorMsg += " See <a href=\"#h-Graduate\">help</a>."
           otherIssues.append(errorMsg)
+
+      isRetiring = row.getElementsByTagName("retiring").length > 0
+      if isRetiring:
+        graduates.append(id)
+        if not row.getAttribute("endDate"):
+          errorMsg = "{0}: Has retired, but still needs to follow the retirement steps.".format(id)
+          print('ERROR:', errorMsg)
+          errorMsg += " See <a href=\"#h-Retire\">help</a>."
+          otherIssues.append(errorMsg)
   
       # Is it reporting monthly?
       reporting = row.getElementsByTagName("reporting")

Modified: incubator/public/trunk/content/podlings.dtd
URL: http://svn.apache.org/viewvc/incubator/public/trunk/content/podlings.dtd?rev=1534042&r1=1534041&r2=1534042&view=diff
==============================================================================
--- incubator/public/trunk/content/podlings.dtd (original)
+++ incubator/public/trunk/content/podlings.dtd Mon Oct 21 07:00:27 2013
@@ -18,7 +18,7 @@
 <!--  DTD for podlings.xml -->
 <!ELEMENT podlings (podling+)>
 
-<!ELEMENT podling (description, reporting?, graduating?, resolution?, champion?, mentors)>
+<!ELEMENT podling (description, reporting?, graduating?, retiring?, resolution?, champion?,
mentors)>
 <!ATTLIST podling name CDATA #REQUIRED>
 <!ATTLIST podling longname CDATA #IMPLIED>
 <!ATTLIST podling status (current|graduated|retired) #REQUIRED>
@@ -45,8 +45,10 @@
 <!-- optional attribute for monthly reports -->
 <!ATTLIST reporting monthly (true|false) #IMPLIED>
 
-<!-- optional empty element used to flag graduating podlings -->
+<!-- optional empty elements to flag podlings that are graduating or retiring -->
 <!ELEMENT graduating EMPTY >
+<!ELEMENT retiring EMPTY >
+<!-- required list of mentors -->
 <!ELEMENT mentors (mentor+)>
 <!ELEMENT mentor  (#PCDATA)  >
 <!ATTLIST mentor username CDATA #REQUIRED>
@@ -61,4 +63,4 @@
 <!ATTLIST resolution tlp CDATA #IMPLIED>
 
 <!ELEMENT champion  (#PCDATA)  >
-<!ATTLIST champion availid CDATA #IMPLIED>
\ No newline at end of file
+<!ATTLIST champion availid CDATA #IMPLIED>

Modified: incubator/public/trunk/content/podlings.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/content/podlings.xml?rev=1534042&r1=1534041&r2=1534042&view=diff
==============================================================================
--- incubator/public/trunk/content/podlings.xml [utf-8] (original)
+++ incubator/public/trunk/content/podlings.xml [utf-8] Mon Oct 21 07:00:27 2013
@@ -1616,7 +1616,7 @@
     <podling name="Tashi" status="current" resource="tashi" sponsor="Incubator" startdate="2008-09-04">
         <description>An infrastructure for cloud computing on big data.</description>
         <reporting group="1"/>
-        <graduating/>
+        <retiring/>
         <mentors>
             <mentor username="mriou">Matthieu Riou</mentor>
             <mentor username="clr">Craig Russell</mentor>



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


Mime
View raw message