Mercurial > p > roundup > code
comparison roundup/cgi_client.py @ 505:34e05cd968b3
_add_assignedto_to_nosy did set nosy to assignedto only, no adding.
| author | Engelbert Gruber <grubert@users.sourceforge.net> |
|---|---|
| date | Wed, 09 Jan 2002 13:54:21 +0000 |
| parents | 531f4e46a818 |
| children | 883025274646 |
comparison
equal
deleted
inserted
replaced
| 504:175b1a9e80f8 | 505:34e05cd968b3 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 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 __doc__ = """ | 20 __doc__ = """ |
| 21 WWW request handler (also used in the stand-alone server). | 21 WWW request handler (also used in the stand-alone server). |
| 22 """ | 22 """ |
| 23 | 23 |
| 354 ''' add the assignedto value from the props to the nosy list | 354 ''' add the assignedto value from the props to the nosy list |
| 355 ''' | 355 ''' |
| 356 if not props.has_key('assignedto'): | 356 if not props.has_key('assignedto'): |
| 357 return | 357 return |
| 358 assignedto_id = props['assignedto'] | 358 assignedto_id = props['assignedto'] |
| 359 if props.has_key('nosy') and assignedto_id not in props['nosy']: | 359 if not props.has_key('nosy'): |
| 360 props['nosy'] = [assignedto_id] | |
| 361 elif assignedto_id not in props['nosy']: | |
| 360 props['nosy'].append(assignedto_id) | 362 props['nosy'].append(assignedto_id) |
| 361 else: | |
| 362 props['nosy'] = [assignedto_id] | |
| 363 | 363 |
| 364 def _changenode(self, props): | 364 def _changenode(self, props): |
| 365 ''' change the node based on the contents of the form | 365 ''' change the node based on the contents of the form |
| 366 ''' | 366 ''' |
| 367 cl = self.db.classes[self.classname] | 367 cl = self.db.classes[self.classname] |
| 1178 props[key] = value | 1178 props[key] = value |
| 1179 return props, changed | 1179 return props, changed |
| 1180 | 1180 |
| 1181 # | 1181 # |
| 1182 # $Log: not supported by cvs2svn $ | 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 # Revision 1.92 2002/01/08 04:12:05 richard | 1186 # Revision 1.92 2002/01/08 04:12:05 richard |
| 1184 # Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822 | 1187 # Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822 |
| 1185 # | 1188 # |
| 1186 # Revision 1.91 2002/01/08 04:03:47 richard | 1189 # Revision 1.91 2002/01/08 04:03:47 richard |
| 1187 # I mucked the intent of the code up. | 1190 # I mucked the intent of the code up. |
