summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e3f1ee)
raw | patch | inline | side by side (parent: 9e3f1ee)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 8 Apr 2002 03:46:42 +0000 (03:46 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 8 Apr 2002 03:46:42 +0000 (03:46 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@698 57a73879-2fb5-44c3-a270-3262357dd7e2
detectors/newissuecopy.py | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
index 7bcb6de174f05faeeb519c419b324503361161b8..852069dbefeb5a6320b7a86b87453b847fa934cc 100644 (file)
# send a copy to the nosy list
for msgid in cl.get(nodeid, 'messages'):
try:
- cl.send_message(nodeid, msgid, change_note, 'team@team.host')
+ # note: last arg must be a list
+ cl.send_message(nodeid, msgid, change_note, ['team@team.host'])
except roundupdb.MessageSendError, message:
raise roundupdb.DetectorError, message
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index c9d2912816f4f0232340a8ffb573a86bad1f8723..d126456466f25df992d1a9253687bd7fc16a5caa 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundupdb.py,v 1.50 2002-04-08 03:40:31 richard Exp $
+# $Id: roundupdb.py,v 1.51 2002-04-08 03:46:42 richard Exp $
__doc__ = """
Extending hyperdb with types specific to issue-tracking.
# we have new recipients
if sendto:
+ # map userids to addresses
+ sendto = [users.get(i, 'address') for i in sendto]
+
# update the message's recipients list
messages.set(msgid, recipients=recipients)
self.classname, nodeid, self.db.config.MAIL_DOMAIN)
messages.set(msgid, messageid=messageid)
- # figure the author's id
- authid = messages.get(msgid, 'author')
-
# send an email to the people who missed out
- sendto = [users.get(i, 'address') for i in sendto]
cn = self.classname
title = self.get(nodeid, 'title') or '%s message copy'%cn
# figure author information
+ authid = messages.get(msgid, 'author')
authname = users.get(authid, 'realname')
if not authname:
authname = users.get(authid, 'username')
#
# $Log: not supported by cvs2svn $
+# Revision 1.50 2002/04/08 03:40:31 richard
+# . added a "detectors" directory for people to put their useful auditors and
+# reactors in. Note - the roundupdb.IssueClass.sendmessage method has been
+# split and renamed "nosymessage" specifically for things like the nosy
+# reactor, and "send_message" which just sends the message.
+#
+# The initial detector is one that we'll be using here at ekit - it bounces new
+# issue messages to a team address.
+#
# Revision 1.49 2002/03/19 06:41:49 richard
# Faster, easier, less mess ;)
#