incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r707249 - /incubator/public/trunk/clutch.py
Date Thu, 23 Oct 2008 02:44:19 GMT
Author: crossley
Date: Wed Oct 22 19:44:18 2008
New Revision: 707249

URL: http://svn.apache.org/viewvc?rev=707249&view=rev
Log:
Print some messages for each stage. Explains processing delays.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=707249&r1=707248&r2=707249&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Wed Oct 22 19:44:18 2008
@@ -80,6 +80,7 @@
 def ignorecasecmp(left, right):
   return cmp(left.upper(), right.upper())
 
+print "Gather the ReportingSchedule data ..."
 # Parse the wiki ReportingSchedule to gather project details
 req = urllib2.Request(
     url='http://wiki.apache.org/incubator/ReportingSchedule?action=raw')
@@ -174,6 +175,7 @@
       rc = rc + node.data
   return rc
 
+print "Gather projects in incubation table data ..."
 dom = xml.dom.minidom.parse("site-author/projects/index.xml")
 # FIXME: dom.getElementById("current") ?
 table = dom.getElementsByTagName("table")[0]
@@ -205,7 +207,6 @@
 dom.unlink()
 
 # Process the incubation table data, detect some potential issues.
-print "-"*50
 projectNames = projectsTable.keys()
 projectNames.sort(ignorecasecmp)
 for k in projectNames:
@@ -218,11 +219,10 @@
     print "WARN: Name '%(name1)s' differs from reporting schedule '%(name2)s'" % \
         {'name1': projects[k]['name'], 'name2': projectsTable[k]['name']}
 
-# Gather committers data
+print "Gather committers data ..."
 # Jim's "projects" page is the easiest way. However it has a very flat
 # structure and the xml is not valid. Need to process the "table" which follows
 # each "h2" element.
-print "-" * 50 
 class CommittersParser(HTMLParser.HTMLParser):
 
   def __init__(self):
@@ -265,8 +265,7 @@
 committers.feed(committersInput.read())
 committers.close()
 
-# Gather mail list data
-print "-" * 50
+print "Gather the mail list data ..."
 class IncubatorMailListNamesParser(HTMLParser.HTMLParser):
 
   def __init__(self):
@@ -305,9 +304,9 @@
   if not matchListUsual:
     print "WARN: Unusual mail list name '%s'" % listName
 
+print "Processing ..."
 # Process the reporting schedule data, correlate and ensure each exists in the
 # incubation projects table, add more details to the data store.
-print "-" * 50
 projectNames = projects.keys()
 projectNames.sort(ignorecasecmp)
 for k in projectNames:
@@ -441,7 +440,7 @@
 
 # end of processing
 
-# Output the data
+print "Output the data ..."
 reportingGroups = {'month': 'Monthly',
     'group-1': 'January,April,July,October',
     'group-2': 'February,May,August,November',
@@ -741,3 +740,4 @@
 outputFile = open('clutch.pkl', 'wb')
 pickle.dump(output, outputFile, pickle.HIGHEST_PROTOCOL)
 outputFile.close()
+print "Done."



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


Mime
View raw message