|
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.93 2002-01-08 11:57:12 richard Exp $ |
| 18 | +# $Id: cgi_client.py,v 1.94 2002-01-09 13:54:21 grubert Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | WWW request handler (also used in the stand-alone server). |
@@ -356,10 +356,10 @@ def _add_assignedto_to_nosy(self, props): |
356 | 356 | if not props.has_key('assignedto'): |
357 | 357 | return |
358 | 358 | assignedto_id = props['assignedto'] |
359 | | - if props.has_key('nosy') and assignedto_id not in props['nosy']: |
360 | | - props['nosy'].append(assignedto_id) |
361 | | - else: |
| 359 | + if not props.has_key('nosy'): |
362 | 360 | props['nosy'] = [assignedto_id] |
| 361 | + elif assignedto_id not in props['nosy']: |
| 362 | + props['nosy'].append(assignedto_id) |
363 | 363 |
|
364 | 364 | def _changenode(self, props): |
365 | 365 | ''' change the node based on the contents of the form |
@@ -1180,6 +1180,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0): |
1180 | 1180 |
|
1181 | 1181 | # |
1182 | 1182 | # $Log: not supported by cvs2svn $ |
| 1183 | +# Revision 1.93 2002/01/08 11:57:12 richard |
| 1184 | +# crying out for real configuration handling... :( |
| 1185 | +# |
1183 | 1186 | # Revision 1.92 2002/01/08 04:12:05 richard |
1184 | 1187 | # Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822 |
1185 | 1188 | # |
|
0 commit comments