[Checkins] SVN: zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py Add name of project or group in mail subject.

Christian Theune ct at gocept.com
Tue Jun 22 03:28:39 EDT 2010


Log message for revision 113750:
  Add name of project or group in mail subject.
  

Changed:
  U   zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py

-=-
Modified: zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py
===================================================================
--- zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py	2010-06-22 07:05:01 UTC (rev 113749)
+++ zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py	2010-06-22 07:28:39 UTC (rev 113750)
@@ -262,8 +262,12 @@
         status = 'FAILED'
 
     if sendmail is True:
+        if project_group:
+            subject = project_group
+        else:
+            subject = ', '.join(projects)
         mail_it(mail_host, mail_from, mail_to, 
-                '%s : Total languishing bugs:  %d' % (status, total), report)
+                '%s : Total languishing bugs for %s:  %d' % (status, subject, total), report)
     if total > 0:
         sys.exit(-1)
 



More information about the checkins mailing list