[Python-checkins] r58104 - tracker/instances/python-dev/scripts/roundup-summary

paul.dubois python-checkins at python.org
Tue Sep 11 18:23:58 CEST 2007


Author: paul.dubois
Date: Tue Sep 11 18:23:58 2007
New Revision: 58104

Modified:
   tracker/instances/python-dev/scripts/roundup-summary
Log:
Add text-only option --text.


Modified: tracker/instances/python-dev/scripts/roundup-summary
==============================================================================
--- tracker/instances/python-dev/scripts/roundup-summary	(original)
+++ tracker/instances/python-dev/scripts/roundup-summary	Tue Sep 11 18:23:58 2007
@@ -86,6 +86,9 @@
 parser.add_option('-r','--resolved', dest='resolved', 
    default=resolvedStatusDefault,
    help="Comma-delimited list of statuses that corresponds to being 'closed'.")
+parser.add_option('-t', '--text', dest='text', action='store_true',
+   default=False,
+   help="Write text report only, no HTML.")
 parser.add_option('-o','--output', dest='output', 
    default='', metavar='FILENAME',
    help='File name for output; default is stdout.')
@@ -858,9 +861,10 @@
     print >>body, textReport.getvalue()
 
     # now the HTML one
-    part = writer.nextpart()
-    body = part.startbody('text/html')
-    print >>body, htmlReport.getvalue()
+    if not options.text:
+       part = writer.nextpart()
+       body = part.startbody('text/html')
+       print >>body, htmlReport.getvalue()
     # finish off the multipart
     writer.lastpart()
     # all done, send!


More information about the Python-checkins mailing list