|
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.135 2002-07-10 00:22:34 richard Exp $ |
| 18 | +# $Id: cgi_client.py,v 1.136 2002-07-10 06:51:08 richard Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | WWW request handler (also used in the stand-alone server). |
@@ -1454,10 +1454,13 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')): |
1454 | 1454 | 'value': value, 'classname': link} |
1455 | 1455 | elif isinstance(proptype, hyperdb.Multilink): |
1456 | 1456 | value = form[key] |
1457 | | - if type(value) != type([]): |
| 1457 | + if hasattr(value, 'value'): |
| 1458 | + # Quite likely to be a FormItem instance |
| 1459 | + value = value.value |
| 1460 | + if not isinstance(value, type([])): |
1458 | 1461 | value = [i.strip() for i in value.value.split(',')] |
1459 | 1462 | else: |
1460 | | - value = [i.value.strip() for i in value] |
| 1463 | + value = [i.strip() for i in value] |
1461 | 1464 | link = cl.properties[key].classname |
1462 | 1465 | l = [] |
1463 | 1466 | for entry in map(str, value): |
@@ -1491,6 +1494,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')): |
1491 | 1494 |
|
1492 | 1495 | # |
1493 | 1496 | # $Log: not supported by cvs2svn $ |
| 1497 | +# Revision 1.135 2002/07/10 00:22:34 richard |
| 1498 | +# . switched to using a session-based web login |
| 1499 | +# |
1494 | 1500 | # Revision 1.134 2002/07/09 04:19:09 richard |
1495 | 1501 | # Added reindex command to roundup-admin. |
1496 | 1502 | # Fixed reindex on first access. |
|
0 commit comments