[Zope-CMF] Bug: 'TypeError: cannot convert string to tuple' in metadata_edit

seb bacon seb@jamkit.com
Fri, 13 Jul 2001 17:46:41 +0100


* Grégoire Weber <gregoire.weber@switzerland.org> [010713 16:52]:
> Something for the tracker? Where to track if so?
> 
> When I call metadata_edit directly from the browser with a 
> parameter which is internaly represented by a tuple like 
> 'contributors' or subject I get a error, if the parameter
> occurs once only:
>    http://path/to/obj/metadata_edit?contributors=x
> 
> No error on more than one occurance:
>    http://path/to/obj/metadata_edit?contributors=x&contributors=y

This is what the type coercion rules are for:

  http://path/to/obj/metadata_edit?contributors:list=x

Your patch is a more robust way of dealing with this kind of
thing, though.  I wonder where the responsibility for ensuring type
correctness should lie?

seb