comparison roundup/roundupdb.py @ 1465:3ebcc0e82cb8

applied (cleaned up version of) patch from feature [SF#625808]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 24 Feb 2003 05:16:58 +0000
parents 0634f815b90c
children e0f4e3561572
comparison
equal deleted inserted replaced
1464:1e113d768c1e 1465:3ebcc0e82cb8
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: roundupdb.py,v 1.81 2003-02-17 06:45:38 richard Exp $ 18 # $Id: roundupdb.py,v 1.82 2003-02-24 05:16:57 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Extending hyperdb with types specific to issue-tracking. 21 Extending hyperdb with types specific to issue-tracking.
22 """ 22 """
23 23
128 # figure the author's id, and indicate they've received the message 128 # figure the author's id, and indicate they've received the message
129 authid = messages.get(msgid, 'author') 129 authid = messages.get(msgid, 'author')
130 130
131 # possibly send the message to the author, as long as they aren't 131 # possibly send the message to the author, as long as they aren't
132 # anonymous 132 # anonymous
133 if (self.db.config.MESSAGES_TO_AUTHOR == 'yes' and 133 if (users.get(authid, 'username') != 'anonymous' and
134 users.get(authid, 'username') != 'anonymous'): 134 not r.has_key(authid)):
135 sendto.append(authid) 135 if self.db.config.MESSAGES_TO_AUTHOR == 'yes':
136 # always CC the author of the message
137 sendto.append(authid)
138 recipients.append(authid)
139 elif self.db.config.MESSAGES_TO_AUTHOR == 'new' and not oldvalues:
140 # only CC the author if the issue is new
141 sendto.append(authid)
142 recipients.append(authid)
136 r[authid] = 1 143 r[authid] = 1
137 144
138 # now deal with cc people. 145 # now deal with cc people.
139 for cc_userid in cc : 146 for cc_userid in cc :
140 if r.has_key(cc_userid): 147 if r.has_key(cc_userid):

Roundup Issue Tracker: http://roundup-tracker.org/