incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r706106 - /incubator/public/trunk/clutch.py
Date Mon, 20 Oct 2008 02:07:30 GMT
Author: crossley
Date: Sun Oct 19 19:07:30 2008
New Revision: 706106

URL: http://svn.apache.org/viewvc?rev=706106&view=rev
Log:
Whitespace changes only. Break some very long lines.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=706106&r1=706105&r2=706106&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sun Oct 19 19:07:30 2008
@@ -66,7 +66,8 @@
 statusLogRE = re.compile("^([0-9]+)-0?([0-9]+)-0?([0-9]+)")
 
 # Parse the wiki ReportingSchedule to gather project details
-req = urllib2.Request(url='http://wiki.apache.org/incubator/ReportingSchedule?action=raw')
+req = urllib2.Request(
+    url='http://wiki.apache.org/incubator/ReportingSchedule?action=raw')
 text = urllib2.urlopen(req).read()
 tokens = re.findall('\*.+', text)
 for token in tokens:
@@ -140,7 +141,8 @@
 projectNames = projects.keys()
 projectNames.sort(ignorecasecmp)
 for k in projectNames:
-  # print '%(name)s ... group: %(group)s' % {'name': k, 'group': projects[k]['reportingGroup']}
+  # print '%(name)s ... group: %(group)s' %
+  #    {'name': k, 'group': projects[k]['reportingGroup']}
   if projects[k]['reportingGroup'].find('month') >= 0:
     print 'ERROR: %s: missing group' % k
     projects[k]['hasReportingGroup'] = False
@@ -198,7 +200,8 @@
     print 'ERROR: %s: Missing from reporting schedule' % k
 
   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']}
+    print "WARN: Name '%(name1)s' differs from reporting schedule '%(name2)s'" % \
+        {'name1': projects[k]['name'], 'name2': projectsTable[k]['name']}
 
 # Process the reporting schedule data, correlate and ensure each exists in the
 # incubation projects table, add more details to the data store.
@@ -227,7 +230,8 @@
     else:
       entryDateDay = 1
     try:
-      entryDate = datetime.datetime(int(match.group(1)), int(match.group(2)), entryDateDay)
+      entryDate = datetime.datetime(
+          int(match.group(1)), int(match.group(2)), entryDateDay)
       projects[k]['elapsedDays'] = (gatherDate-entryDate).days
       projects[k]['entryDate'] = entryDate
     except ValueError:
@@ -245,7 +249,8 @@
 
   # See if they have a distribution yet.
   # Probably need to instead get info from roberts's "audit" data.
-  url = "http://www.apache.org/dist/incubator/%s/" % projects[k]['statusFileName']
+  url = "http://www.apache.org/dist/incubator/%s/" % \
+      projects[k]['statusFileName']
   if url != "":
     try:
       urllib2.urlopen(url)
@@ -257,7 +262,8 @@
   # 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.
-  command = "svn log --xml 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))
   rowCounter = 0
   count1 = 0
@@ -267,10 +273,12 @@
     rowCounter += 1
     date = getText(row.childNodes)
     matchSvn = re.search(statusLogRE, date)
-    thisDate = "%(a)4d-%(b)02d-%(c)02d" % {'a': int(matchSvn.group(1)), 'b': int(matchSvn.group(2)),
'c': int(matchSvn.group(3))}
-    thisDate = datetime.datetime(int(matchSvn.group(1)), int(matchSvn.group(2)), int(matchSvn.group(3)))
+    thisDate = datetime.datetime(
+        int(matchSvn.group(1)), int(matchSvn.group(2)), int(matchSvn.group(3)))
     if rowCounter == 1:
-      projects[k]['statusLastUpdated'] = "%(a)4d-%(b)02d-%(c)02d" % {'a': int(matchSvn.group(1)),
'b': int(matchSvn.group(2)), 'c': int(matchSvn.group(3))}
+      projects[k]['statusLastUpdated'] = "%(a)4d-%(b)02d-%(c)02d" % \
+          {'a': int(matchSvn.group(1)), 'b': int(matchSvn.group(2)),
+           'c': int(matchSvn.group(3))}
       projects[k]['statusAge'] = (gatherDate-thisDate).days
       if projects[k]['statusAge'] == 0:
         # FIXME: Could be improved
@@ -285,7 +293,8 @@
     count2 = "-"
   if projects[k]['entryDate'] >= statusTallyDate2:
     count3 = "-"
-  projects[k]['statusUpdateCounts'] = "%(a)s,%(b)s,%(c)s" % {'a': count1, 'b': count2, 'c':
count3}
+  projects[k]['statusUpdateCounts'] = "%(a)s,%(b)s,%(c)s" % \
+      {'a': count1, 'b': count2, 'c': count3}
 
   dom.unlink()
 
@@ -437,7 +446,8 @@
     fileXml.write('          <td class="issue">%s</td>\n' % projects[k]['hasReportingGroup'])
 
   if projects[k]['hasStatusEntry']:
-    fileXml.write('          <td><a href="/projects/%(name)s.html">%(entry)s</a></td>\n'
% {'name': projects[k]['statusFileName'], 'entry': projects[k]['hasStatusEntry']})
+    fileXml.write('          <td><a href="/projects/%(name)s.html">%(entry)s</a></td>\n'
% \
+        {'name': projects[k]['statusFileName'], 'entry': projects[k]['hasStatusEntry']})
   else:
     fileXml.write('          <td class="issue">%s</td>\n' % projects[k]['hasStatusEntry'])
 
@@ -457,12 +467,14 @@
   fileXml.write('          <td>%s</td>\n' % projects[k]['statusUpdateCounts'])
 
   if projects[k]['url']:
-    fileXml.write('          <td class="cool1"><a href="%s">True</a></td>\n'
% projects[k]['url'])
+    fileXml.write('          <td class="cool1"><a href="%s">True</a></td>\n'
% \
+        projects[k]['url'])
   else:
     fileXml.write('          <td>False</td>\n')
 
   if projects[k]['dist']:
-    fileXml.write('          <td class="cool1"><a href="%s">True</a></td>\n'
% projects[k]['dist'])
+    fileXml.write('          <td class="cool1"><a href="%s">True</a></td>\n'
% \
+        projects[k]['dist'])
   else:
     fileXml.write('          <td>False</td>\n')
 



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


Mime
View raw message