Skip to content

Commit e448b01

Browse files
author
Richard Jones
committed
reverted back to sending messages always...
regardless of who is doing the web edit. change notes weren't being saved. bleah. hackish.
1 parent a730477 commit e448b01

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

roundup/cgi_client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
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 $
1919

2020
import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes
2121

@@ -276,17 +276,14 @@ def _post_editnode(self, nid, changes=None):
276276
link = self.db.classes[link]
277277
link.set(nodeid, **{property: nid})
278278

279+
# TODO: this should be an auditor
279280
# see if we want to send a message to the nosy list...
280281
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
284283
nosy = 0
285284
if props.has_key('nosy'):
286285
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)
290287
if (nosy and props.has_key('messages') and
291288
isinstance(props['messages'], hyperdb.Multilink) and
292289
props['messages'].classname == 'msg'):
@@ -521,6 +518,10 @@ def parsePropsFromForm(cl, form, note_changed=0):
521518

522519
#
523520
# $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+
#
524525
# Revision 1.20 2001/08/12 06:32:36 richard
525526
# using isinstance(blah, Foo) now instead of isFooType
526527
#

0 commit comments

Comments
 (0)