incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r1426866 - /incubator/public/trunk/clutch2report.py
Date Sun, 30 Dec 2012 00:07:45 GMT
Author: bimargulies
Date: Sun Dec 30 00:07:45 2012
New Revision: 1426866

URL: http://svn.apache.org/viewvc?rev=1426866&view=rev
Log:
Here we have a table of contents in the report template.

Modified:
    incubator/public/trunk/clutch2report.py

Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1426866&r1=1426865&r2=1426866&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Sun Dec 30 00:07:45 2012
@@ -51,6 +51,12 @@ Still getting started at the Incubator
 Not yet ready to graduate
 
 Ready to graduate
+
+
+----------------------------------------------------------------------
+                       Table of Contents
+{toc}
+----------------------------------------------------------------------                  
 
 """
 
 perproject = """
@@ -112,7 +118,14 @@ def main():
     projects = pickle.load(inputFile)
     inputFile.close()
     output = open('report.txt', 'w')
-    output.write(boilerplate.format(month=calendar.month_abbr[month]))
+    toc = ""
+    for project in sorted(projects.keys()):
+        pdata = projects[project]
+        if pdata['rawReportingGroup'] == curGroup or pdata['reportingMonthly']:
+            toc = toc + projects[project]['fullName'] + "\n"
+         
+    output.write(boilerplate.format(month=calendar.month_abbr[month], toc=toc))
+    
     ptemplate = Template(perproject)
     
     for project in sorted(projects.keys()):



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


Mime
View raw message