incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r714187 - /incubator/public/trunk/clutch.py
Date Fri, 14 Nov 2008 23:28:15 GMT
Author: crossley
Date: Fri Nov 14 15:28:14 2008
New Revision: 714187

URL: http://svn.apache.org/viewvc?rev=714187&view=rev
Log:
Link to current month's draft board report.
Commence some crude debugging.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=714187&r1=714186&r2=714187&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Fri Nov 14 15:28:14 2008
@@ -62,6 +62,8 @@
 import urllib2
 import xml.dom.minidom
 
+optionVerbose = False # FIXME: use proper options
+
 projects = {} # internal data
 otherIssues = []
 output = {} # output persistent data to be utilised by other tools
@@ -464,6 +466,9 @@
   # Gather recent updates to their status page.
   # FIXME: Perhaps this operation could be improved. Use "subprocess" module.
   # On this older Mac still python-2.3.5, so no. See notes at top.
+  if optionVerbose:
+    print "DEBUG: Parsing svn log for site-author/projects/%s.xml ..." % \
+        projects[k]['statusFileName']
   command = "svn log --xml site-author/projects/%s.xml" % \
       projects[k]['statusFileName']
   dom = xml.dom.minidom.parseString(commands.getoutput(command))
@@ -693,6 +698,9 @@
     'group-1': 'January,April,July,October',
     'group-2': 'February,May,August,November',
     'group-3': 'March,June,September,December'}
+monthsLong = 'January February March April May June July August September October November
December'.split()
+nameCurrentReport = "%(a)s%(b)s" % {'a': monthsLong[gatherDate.month-1], 'b': gatherDate.year}
+urlCurrentReport = "http://wiki.apache.org/incubator/%s" % nameCurrentReport
 fileXml = open('site-author/clutch.xml', 'w')
 fileList = open('site-author/clutch.txt', 'w')
 headerXml = """<?xml version="1.0" encoding="utf-8"?>
@@ -741,6 +749,7 @@
         <li>
           C: reportingMonthly in
           <a href="http://wiki.apache.org/incubator/ReportingSchedule">w.a.o/incubator/ReportingSchedule</a>
+          (current report: <a href="%(urlCurrentReport)s">%(nameCurrentReport)s</a>)
         </li>
         <li>
           D: reportingGroup - in which set of months do they report:<br />
@@ -831,6 +840,8 @@
           <th>R</th>
         </tr>
 """ % {'gatherDate': gatherDateString,
+       'urlCurrentReport': urlCurrentReport,
+       'nameCurrentReport': nameCurrentReport,
        'numProjects': len(projects)
       }
 fileXml.write(headerXml)



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


Mime
View raw message