Mercurial > p > roundup > code
comparison roundup/cgi_client.py @ 762:e13b9ba46d9d
[SF#565996] The "Attach a File to this Issue" fails
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 11 Jun 2002 06:38:24 +0000 |
| parents | 938edfdeac6e |
| children | cbbc987a390d |
comparison
equal
deleted
inserted
replaced
| 761:e7b89de78052 | 762:e13b9ba46d9d |
|---|---|
| 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.126 2002-05-29 01:16:17 richard Exp $ | 18 # $Id: cgi_client.py,v 1.127 2002-06-11 06:38:24 richard 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 |
| 715 if type(value) != type([]): value = [value] | 715 if type(value) != type([]): value = [value] |
| 716 for value in value: | 716 for value in value: |
| 717 designator, property = value.split(':') | 717 designator, property = value.split(':') |
| 718 link, nodeid = roundupdb.splitDesignator(designator) | 718 link, nodeid = roundupdb.splitDesignator(designator) |
| 719 link = self.db.classes[link] | 719 link = self.db.classes[link] |
| 720 value = link.get(nodeid, property) | 720 # take a dupe of the list so we're not changing the cache |
| 721 value = link.get(nodeid, property)[:] | |
| 721 value.append(nid) | 722 value.append(nid) |
| 722 link.set(nodeid, **{property: value}) | 723 link.set(nodeid, **{property: value}) |
| 723 elif key == ':link': | 724 elif key == ':link': |
| 724 value = self.form[key].value | 725 value = self.form[key].value |
| 725 if type(value) != type([]): value = [value] | 726 if type(value) != type([]): value = [value] |
| 1360 props[key] = value | 1361 props[key] = value |
| 1361 return props | 1362 return props |
| 1362 | 1363 |
| 1363 # | 1364 # |
| 1364 # $Log: not supported by cvs2svn $ | 1365 # $Log: not supported by cvs2svn $ |
| 1366 # Revision 1.126 2002/05/29 01:16:17 richard | |
| 1367 # Sorry about this huge checkin! It's fixing a lot of related stuff in one go | |
| 1368 # though. | |
| 1369 # | |
| 1370 # . #541941 ] changing multilink properties by mail | |
| 1371 # . #526730 ] search for messages capability | |
| 1372 # . #505180 ] split MailGW.handle_Message | |
| 1373 # - also changed cgi client since it was duplicating the functionality | |
| 1374 # . build htmlbase if tests are run using CVS checkout (removed note from | |
| 1375 # installation.txt) | |
| 1376 # . don't create an empty message on email issue creation if the email is empty | |
| 1377 # | |
| 1365 # Revision 1.125 2002/05/25 07:16:24 rochecompaan | 1378 # Revision 1.125 2002/05/25 07:16:24 rochecompaan |
| 1366 # Merged search_indexing-branch with HEAD | 1379 # Merged search_indexing-branch with HEAD |
| 1367 # | 1380 # |
| 1368 # Revision 1.124 2002/05/24 02:09:24 richard | 1381 # Revision 1.124 2002/05/24 02:09:24 richard |
| 1369 # Nothing like a live demo to show up the bugs ;) | 1382 # Nothing like a live demo to show up the bugs ;) |
