Mercurial > p > roundup > code
view website/issues/detectors/newissuecopy.py @ 4354:81a9eda2a798 website
I need to know when new issues are created
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 09 Feb 2010 02:08:26 +0000 |
| parents | |
| children | b622e150c0ba |
line wrap: on
line source
from roundup import roundupdb def newissuecopy(db, cl, nodeid, oldvalues): ''' Copy a message about new issues to a team address. ''' # so use all the messages in the create change_note = cl.generateCreateNote(nodeid) # send a copy to the nosy list for msgid in cl.get(nodeid, 'messages'): try: # note: last arg must be a list cl.send_message(nodeid, msgid, change_note, ['r1chardj0n3s@gmail.com']) except roundupdb.MessageSendError, message: raise roundupdb.DetectorError, message def init(db): db.issue.react('create', newissuecopy)
