incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r940154 - in /incubator/public/trunk: clutch.py site-author/clutch.xml site-publish/clutch.html
Date Sun, 02 May 2010 02:20:47 GMT
Author: crossley
Date: Sun May  2 02:20:47 2010
New Revision: 940154

URL: http://svn.apache.org/viewvc?rev=940154&view=rev
Log:
Improved detection of graduated projects. Was missing those with spaces in name.
trafficserver has remains on Incubator distribution mirrors (however is recent graduation).

Modified:
    incubator/public/trunk/clutch.py
    incubator/public/trunk/site-author/clutch.xml
    incubator/public/trunk/site-publish/clutch.html

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=940154&r1=940153&r2=940154&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sun May  2 02:20:47 2010
@@ -100,6 +100,7 @@ svnRevisionSkipRE = re.compile("707389|7
 mailListRE = re.compile("^([-a-z0-9]+)@([a-z]+)\.apache\.org")
 mailListNameRE = re.compile("^([a-z]+)-([-a-z0-9]+)")
 mailListNameUrlRE = re.compile("/([a-z]+)-([-a-z0-9]+)/$")
+graduatedRE = re.compile("([-a-z0-9]+).html")
 urlHttpRE = re.compile("^http")
 newCommitterRE = re.compile("[nN]ew [cC]ommitt?er")
 releasesRE = re.compile("dist/incubator/([-a-z0-9]+)/")
@@ -277,8 +278,12 @@ graduatedProjects = {}
 table2 = dom.getElementsByTagName("table")[1]
 for row in table2.getElementsByTagName("tr")[1:]:
   # FIXME: surely this can be improved
-  nameGraduate = getText(row.getElementsByTagName("td")[0].getElementsByTagName("a")[0].childNodes)
-  graduatedProjects[nameGraduate.lower()] = True
+  elementA = row.getElementsByTagName("td")[0].getElementsByTagName("a")[0]
+  if elementA.attributes.has_key('href'):
+    hrefGraduate = elementA.getAttribute('href')
+    matchGraduated = re.search(graduatedRE, hrefGraduate)
+    if matchGraduated:
+      graduatedProjects[matchGraduated.group(1).lower()] = True
 
 dom.unlink()
 

Modified: incubator/public/trunk/site-author/clutch.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/clutch.xml?rev=940154&r1=940153&r2=940154&view=diff
==============================================================================
--- incubator/public/trunk/site-author/clutch.xml [utf-8] (original)
+++ incubator/public/trunk/site-author/clutch.xml [utf-8] Sun May  2 02:20:47 2010
@@ -128,11 +128,12 @@ Run Clutch instead: http://incubator.apa
  <span class="care">sanselan</span> 
  <span class="care">shindig</span> 
  <span class="care">subversion</span> 
+ <span class="care">trafficserver</span> 
  <span class="care">uima</span> 
 </li>
       </ul>
       <p>
-        Clutch last gathered: Sat May  1 23:45:04 2010 UTC.<br />
+        Clutch last gathered: Sun May  2 01:58:13 2010 UTC.<br />
         Number of podlings in incubation: 33
       </p>
       <table id="clutch">
@@ -262,7 +263,7 @@ Run Clutch instead: http://incubator.apa
           <td class="cool1"><a href="projects/cassandra.html">True</a></td>
           <td>2010-01-04</td>
           <td></td>
-          <td>0,2,2</td>
+          <td>0,1,2</td>
           <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#cassandra">12</a></td>
           <td class="cool1">7</td>
           <td class="care">False</td>
@@ -981,6 +982,7 @@ Run Clutch instead: http://incubator.apa
         <li>sanselan: Has graduated, but still has remains on Incubator distribution
mirrors. See <a href="#h-Graduate">help</a>.</li>
         <li>shindig: Has graduated, but still has remains on Incubator distribution
mirrors. See <a href="#h-Graduate">help</a>.</li>
         <li>subversion: Not listed in <a href="http://wiki.apache.org/incubator/ReportingSchedule">ReportingSchedule</a>,
yet listed in <a href="projects/">IncubationTable</a>. See <a href="#h-Graduate">help</a>.</li>
+        <li>trafficserver: Has graduated, but still has remains on Incubator distribution
mirrors. See <a href="#h-Graduate">help</a>.</li>
         <li>uima: Has graduated, but still has remains on Incubator distribution mirrors.
See <a href="#h-Graduate">help</a>.</li>
       </ul>
     </section>

Modified: incubator/public/trunk/site-publish/clutch.html
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/clutch.html?rev=940154&r1=940153&r2=940154&view=diff
==============================================================================
--- incubator/public/trunk/site-publish/clutch.html [utf-8] (original)
+++ incubator/public/trunk/site-publish/clutch.html [utf-8] Sun May  2 02:20:47 2010
@@ -213,11 +213,12 @@ href="http://wiki.apache.org/incubator">
  <span class="care">sanselan</span> 
  <span class="care">shindig</span> 
  <span class="care">subversion</span> 
+ <span class="care">trafficserver</span> 
  <span class="care">uima</span> 
 </li>
       </ul>
 <p>
-        Clutch last gathered: Sat May  1 23:45:04 2010 UTC.<br />
+        Clutch last gathered: Sun May  2 01:58:13 2010 UTC.<br />
         Number of podlings in incubation: 33
       </p>
 <table id="clutch" class="colortable" width="100%">
@@ -347,7 +348,7 @@ href="http://wiki.apache.org/incubator">
           <td class="cool1"><a href="projects/cassandra.html">True</a></td>
           <td>2010-01-04</td>
           <td />
-          <td>0,2,2</td>
+          <td>0,1,2</td>
           <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#cassandra">12</a></td>
           <td class="cool1">7</td>
           <td class="care">False</td>
@@ -1068,6 +1069,7 @@ href="http://wiki.apache.org/incubator">
         <li>sanselan: Has graduated, but still has remains on Incubator distribution
mirrors. See <a href="#h-Graduate">help</a>.</li>
         <li>shindig: Has graduated, but still has remains on Incubator distribution
mirrors. See <a href="#h-Graduate">help</a>.</li>
         <li>subversion: Not listed in <a href="http://wiki.apache.org/incubator/ReportingSchedule">ReportingSchedule</a>,
yet listed in <a href="projects/">IncubationTable</a>. See <a href="#h-Graduate">help</a>.</li>
+        <li>trafficserver: Has graduated, but still has remains on Incubator distribution
mirrors. See <a href="#h-Graduate">help</a>.</li>
         <li>uima: Has graduated, but still has remains on Incubator distribution mirrors.
See <a href="#h-Graduate">help</a>.</li>
       </ul>
 </div>



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


Mime
View raw message