|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: cgi_client.py,v 1.21 2001-08-15 23:43:18 richard Exp $ |
| 18 | +# $Id: cgi_client.py,v 1.22 2001-08-17 00:08:10 richard Exp $ |
19 | 19 |
|
20 | 20 | import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes |
21 | 21 |
|
@@ -276,17 +276,14 @@ def _post_editnode(self, nid, changes=None): |
276 | 276 | link = self.db.classes[link] |
277 | 277 | link.set(nodeid, **{property: nid}) |
278 | 278 |
|
| 279 | + # TODO: this should be an auditor |
279 | 280 | # see if we want to send a message to the nosy list... |
280 | 281 | props = cl.getprops() |
281 | | - # don't do the message thing if there's no nosy list, or the editor |
282 | | - # of the node is the only person on the nosy list - they're already |
283 | | - # aware of the change. |
| 282 | + # don't do the message thing if there's no nosy list |
284 | 283 | nosy = 0 |
285 | 284 | if props.has_key('nosy'): |
286 | 285 | nosy = cl.get(nid, 'nosy') |
287 | | - uid = self.getuid() |
288 | | - if len(nosy) == 1 and uid in nosy: |
289 | | - nosy = 0 |
| 286 | + nosy = len(nosy) |
290 | 287 | if (nosy and props.has_key('messages') and |
291 | 288 | isinstance(props['messages'], hyperdb.Multilink) and |
292 | 289 | props['messages'].classname == 'msg'): |
@@ -521,6 +518,10 @@ def parsePropsFromForm(cl, form, note_changed=0): |
521 | 518 |
|
522 | 519 | # |
523 | 520 | # $Log: not supported by cvs2svn $ |
| 521 | +# Revision 1.21 2001/08/15 23:43:18 richard |
| 522 | +# Fixed some isFooTypes that I missed. |
| 523 | +# Refactored some code in the CGI code. |
| 524 | +# |
524 | 525 | # Revision 1.20 2001/08/12 06:32:36 richard |
525 | 526 | # using isinstance(blah, Foo) now instead of isFooType |
526 | 527 | # |
|
0 commit comments