[CMF-checkins] CVS: CMF/CMFCollector - CollectorIssue.py:1.35

Ken Manheimer klm@zope.com
Fri, 14 Dec 2001 20:43:40 -0500


Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv4351

Modified Files:
	CollectorIssue.py 
Log Message:
Incorporating mechanism to include specific email addresses among
destinations for all notifications per issue state.

_send_update_notice(): Checking new collector.state_email dictionary
to look for addresses specific to current state.


=== CMF/CMFCollector/CollectorIssue.py 1.34 => 1.35 ===
                 recipients.append((name, email))
 
+        if self.state_email.has_key(new_status):
+            se = ("_%s_ recipient" % new_status, self.state_email[new_status])
+            candidates.append(se)       # For recipients-debug
+            recipients.append(se)
+
         if recipients:
             to = ", ".join(["%s <%s>" % (name, email)
                             for name, email in recipients])