Mercurial > p > roundup > code
diff doc/customizing.txt @ 2069:d8c7fd205cd8
info for installing the CSV module
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 03 Mar 2004 23:38:04 +0000 |
| parents | f913b6beac35 |
| children | 2a4309450202 |
line wrap: on
line diff
--- a/doc/customizing.txt Wed Mar 03 05:00:26 2004 +0000 +++ b/doc/customizing.txt Wed Mar 03 23:38:04 2004 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.117 $ +:Version: $Revision: 1.118 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -2923,18 +2923,17 @@ consists of:: def nosyreaction(db, cl, nodeid, oldvalues): + users = db.user + messages = db.msg # send a copy of all new messages to the nosy list for msgid in determineNewMessages(cl, nodeid, oldvalues): try: - users = db.user - messages = db.msg - # figure the recipient ids sendto = [] - r = {} + seen_message = {} recipients = messages.get(msgid, 'recipients') for recipid in messages.get(msgid, 'recipients'): - r[recipid] = 1 + seen_message[recipid] = 1 # figure the author's id, and indicate they've received # the message @@ -2945,7 +2944,7 @@ if (db.config.MESSAGES_TO_AUTHOR == 'yes' and users.get(authid, 'username') != 'anonymous'): sendto.append(authid) - r[authid] = 1 + seen_message[authid] = 1 # now figure the nosy people who weren't recipients nosy = cl.get(nodeid, 'nosy') @@ -2956,7 +2955,7 @@ if users.get(nosyid, 'username') == 'anonymous': continue # make sure they haven't seen the message already - if not r.has_key(nosyid): + if not seen_message.has_key(nosyid): # send it to them sendto.append(nosyid) recipients.append(nosyid)
