Mercurial > p > roundup > code
comparison roundup/cgi/client.py @ 1029:c3e391d9c4e9
more FieldStorage fun
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 03 Sep 2002 07:42:38 +0000 |
| parents | 9990a635de03 |
| children | c28603c9f831 |
comparison
equal
deleted
inserted
replaced
| 1028:16498e77e3ff | 1029:c3e391d9c4e9 |
|---|---|
| 1 # $Id: client.py,v 1.9 2002-09-03 07:13:42 richard Exp $ | 1 # $Id: client.py,v 1.10 2002-09-03 07:42:38 richard Exp $ |
| 2 | 2 |
| 3 __doc__ = """ | 3 __doc__ = """ |
| 4 WWW request handler (also used in the stand-alone server). | 4 WWW request handler (also used in the stand-alone server). |
| 5 """ | 5 """ |
| 6 | 6 |
| 1032 '%(value)s not a %(classname)s')%{'propname':key, | 1032 '%(value)s not a %(classname)s')%{'propname':key, |
| 1033 'value': value, 'classname': link} | 1033 'value': value, 'classname': link} |
| 1034 elif isinstance(proptype, hyperdb.Multilink): | 1034 elif isinstance(proptype, hyperdb.Multilink): |
| 1035 value = form[key] | 1035 value = form[key] |
| 1036 if not isinstance(value, type([])): | 1036 if not isinstance(value, type([])): |
| 1037 value = [i.strip() for i in value.split(',')] | 1037 value = [i.strip() for i in value.value.split(',')] |
| 1038 else: | 1038 else: |
| 1039 value = [i.value.strip() for i in value] | 1039 value = [i.value.strip() for i in value] |
| 1040 link = cl.properties[key].classname | 1040 link = cl.properties[key].classname |
| 1041 l = [] | 1041 l = [] |
| 1042 for entry in map(str, value): | 1042 for entry in map(str, value): |
