Mercurial > p > roundup > code
comparison detectors/newissuecopy.py @ 691:3d8ce8e2dcee search_indexing-0-4-2-branch
[[Metadata associated with this commit was garbled during conversion from CVS
to Subversion.]]
| author | Roche Compaan <rochecompaan@users.sourceforge.net> |
|---|---|
| date | Mon, 15 Apr 2002 23:25:16 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 683:7f5b51ffe92d | 691:3d8ce8e2dcee |
|---|---|
| 1 # copied from nosyreaction | |
| 2 | |
| 3 from roundup import roundupdb | |
| 4 | |
| 5 def newissuecopy(db, cl, nodeid, oldvalues): | |
| 6 ''' Copy a message about new issues to a team address. | |
| 7 ''' | |
| 8 # so use all the messages in the create | |
| 9 change_note = cl.generateCreateNote(nodeid) | |
| 10 | |
| 11 # send a copy to the nosy list | |
| 12 for msgid in cl.get(nodeid, 'messages'): | |
| 13 try: | |
| 14 # note: last arg must be a list | |
| 15 cl.send_message(nodeid, msgid, change_note, ['team@team.host']) | |
| 16 except roundupdb.MessageSendError, message: | |
| 17 raise roundupdb.DetectorError, message | |
| 18 | |
| 19 def init(db): | |
| 20 db.issue.react('create', newissuecopy) | |
| 21 |
