From 58370c639ac99237b841ef8a5a863b57de295141 Mon Sep 17 00:00:00 2001 From: grubert Date: Wed, 9 Jan 2002 13:54:21 +0000 Subject: [PATCH] _add_assignedto_to_nosy did set nosy to assignedto only, no adding. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@517 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi_client.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index bdf1dfd..55ff8e0 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.93 2002-01-08 11:57:12 richard Exp $ +# $Id: cgi_client.py,v 1.94 2002-01-09 13:54:21 grubert Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -356,10 +356,10 @@ class Client: if not props.has_key('assignedto'): return assignedto_id = props['assignedto'] - if props.has_key('nosy') and assignedto_id not in props['nosy']: - props['nosy'].append(assignedto_id) - else: + if not props.has_key('nosy'): props['nosy'] = [assignedto_id] + elif assignedto_id not in props['nosy']: + props['nosy'].append(assignedto_id) def _changenode(self, props): ''' change the node based on the contents of the form @@ -1180,6 +1180,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0): # # $Log: not supported by cvs2svn $ +# Revision 1.93 2002/01/08 11:57:12 richard +# crying out for real configuration handling... :( +# # Revision 1.92 2002/01/08 04:12:05 richard # Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822 # -- 2.30.2