From: richard Date: Fri, 17 Aug 2001 00:08:10 +0000 (+0000) Subject: reverted back to sending messages always regardless of who is doing the web X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7c3340313d0dd3eb8d54e49fa7286208cf128f7f;p=roundup.git reverted back to sending messages always regardless of who is doing the web edit. change notes weren't being saved. bleah. hackish. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@239 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index e029d41..c9ebcef 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: cgi_client.py,v 1.21 2001-08-15 23:43:18 richard Exp $ +# $Id: cgi_client.py,v 1.22 2001-08-17 00:08:10 richard Exp $ import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes @@ -276,17 +276,14 @@ class Client: link = self.db.classes[link] link.set(nodeid, **{property: nid}) + # TODO: this should be an auditor # see if we want to send a message to the nosy list... props = cl.getprops() - # don't do the message thing if there's no nosy list, or the editor - # of the node is the only person on the nosy list - they're already - # aware of the change. + # don't do the message thing if there's no nosy list nosy = 0 if props.has_key('nosy'): nosy = cl.get(nid, 'nosy') - uid = self.getuid() - if len(nosy) == 1 and uid in nosy: - nosy = 0 + nosy = len(nosy) if (nosy and props.has_key('messages') and isinstance(props['messages'], hyperdb.Multilink) and props['messages'].classname == 'msg'): @@ -521,6 +518,10 @@ def parsePropsFromForm(cl, form, note_changed=0): # # $Log: not supported by cvs2svn $ +# Revision 1.21 2001/08/15 23:43:18 richard +# Fixed some isFooTypes that I missed. +# Refactored some code in the CGI code. +# # Revision 1.20 2001/08/12 06:32:36 richard # using isinstance(blah, Foo) now instead of isFooType #