incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r707391 - in /incubator/public/trunk: clutch.py site-author/clutch.xml site-publish/clutch.html
Date Thu, 23 Oct 2008 15:32:32 GMT
Author: crossley
Date: Thu Oct 23 08:32:32 2008
New Revision: 707391

URL: http://svn.apache.org/viewvc?rev=707391&view=rev
Log:
Start to gather details from project status files.
Skip counting various commits which were to standardise the status files.

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=707391&r1=707390&r2=707391&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Thu Oct 23 08:32:32 2008
@@ -80,7 +80,7 @@
 def ignorecasecmp(left, right):
   return cmp(left.upper(), right.upper())
 
-print "Gather the ReportingSchedule data ..."
+print "Gather data from the ReportingSchedule ..."
 # Parse the wiki ReportingSchedule to gather project details
 req = urllib2.Request(
     url='http://wiki.apache.org/incubator/ReportingSchedule?action=raw')
@@ -175,7 +175,7 @@
       rc = rc + node.data
   return rc
 
-print "Gather projects in incubation table data ..."
+print "Gather data from the projects-in-incubation table ..."
 dom = xml.dom.minidom.parse("site-author/projects/index.xml")
 # FIXME: dom.getElementById("current") ?
 table = dom.getElementsByTagName("table")[0]
@@ -207,9 +207,11 @@
 dom.unlink()
 
 # Process the incubation table data, detect some potential issues.
+print "Gather details from project status files ..."
 projectNames = projectsTable.keys()
 projectNames.sort(ignorecasecmp)
 for k in projectNames:
+  #print "Name: %s" % k
   try:
     projects[k]
   except KeyError:
@@ -218,6 +220,18 @@
   if projects[k]['name'] != projectsTable[k]['name']:
     print "WARN: Name '%(name1)s' differs from reporting schedule '%(name2)s'" % \
         {'name1': projects[k]['name'], 'name2': projectsTable[k]['name']}
+  statusFile = "site-author/projects/%s.xml" % projectsTable[k]['statusFileName']
+  dom = xml.dom.minidom.parse(statusFile)
+  table = dom.getElementsByTagName("table")[0]
+  for row in table.getElementsByTagName("tr")[1:]:
+    cell = row.getElementsByTagName("td")[2]
+    if cell.attributes.has_key('id'):
+      values = [getText(item.childNodes) for item in cell.childNodes]
+      value = "".join(values)
+      #print "%(a)s=%(b)s" % {'a': cell.getAttribute('id'), 'b': value.strip()}
+  dom.unlink()
+
+# end of processing incubation table data
 
 print "Gather committers data ..."
 # Jim's "projects" page is the easiest way. However it has a very flat
@@ -417,9 +431,12 @@
   count1 = 0
   count2 = 0
   count3 = 0
-  for row in dom.getElementsByTagName("date")[0:]:
+  for row in dom.getElementsByTagName("logentry"):
+    # Skip counting various commits which were to standardise the status files.
+    if row.getAttribute('revision') == "707389":
+      continue
     rowCounter += 1
-    date = getText(row.childNodes)
+    date = getText(row.getElementsByTagName("date")[0].childNodes)
     matchSvn = re.search(statusLogRE, date)
     thisDate = datetime.datetime(
         int(matchSvn.group(1)), int(matchSvn.group(2)), int(matchSvn.group(3)))

Modified: incubator/public/trunk/site-author/clutch.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/clutch.xml?rev=707391&r1=707390&r2=707391&view=diff
==============================================================================
--- incubator/public/trunk/site-author/clutch.xml (original)
+++ incubator/public/trunk/site-author/clutch.xml Thu Oct 23 08:32:32 2008
@@ -91,7 +91,7 @@
         </li>
       </ul>
       <p>
-        Clutch last gathered: Thu Oct 23 04:31:54 2008 UTC.<br />
+        Clutch last gathered: Thu Oct 23 15:25:19 2008 UTC.<br />
         Number of podlings in incubation: 35
       </p>
       <table id="clutch">

Modified: incubator/public/trunk/site-publish/clutch.html
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/clutch.html?rev=707391&r1=707390&r2=707391&view=diff
==============================================================================
--- incubator/public/trunk/site-publish/clutch.html (original)
+++ incubator/public/trunk/site-publish/clutch.html Thu Oct 23 08:32:32 2008
@@ -180,7 +180,7 @@
         </li>
       </ul>
 <p>
-        Clutch last gathered: Thu Oct 23 04:31:54 2008 UTC.<br />
+        Clutch last gathered: Thu Oct 23 15:25:19 2008 UTC.<br />
         Number of podlings in incubation: 35
       </p>
 <table id="clutch" class="colortable" width="100%">



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


Mime
View raw message