[Zope-Coders] Re: [ZC] 613/ 1 Request "Can't add a "multiple selection"-property"

Maik Jablonski maik.jablonski@uni-bielefeld.de
Fri, 11 Oct 2002 02:55:40 +0200


sorry for adding this issue twice, but my gsm-network went down 
"unnoticed" while sending this issue...

sorry again, cheers maik

Collector: Zope Bugs, Features, and Patches ... wrote:
> Issue #613 Update (Request) "Can't add a "multiple selection"-property"
>  Status Pending, Zope/bug critical
> To followup, visit:
>   http://collector.zope.org/Zope/613
> 
> ==============================================================
> = Request - Entry #1 by mjablonski on Oct 10, 2002 8:50 pm
> 
> Add a lines-property with name='foo'. Then adding a "multiple selection"-property with name='foobar' and value='foo' results in an error: 
> 
> Error Type: Bad Request
> Error Value: No select variable ['foo']
> 
> If I comment out line 160 of ZPublisher/Converters.py
> 
> #    'multiple selection': field2lines,
> 
> all works fine. Interesting note: There's no entry for 'selection' in the type_converters, so they work without problems...
> 
> type_converters = {
>     'float':              field2float,
>     'int':                field2int,
>     'long':               field2long,
>     'string':             field2string,
>     'date':               field2date,
>     'required':           field2required,
>     'tokens':             field2tokens,
>     'lines':              field2lines,
>     'text':               field2text,
>     'boolean':            field2boolean,
>     'multiple selection': field2lines,
>     'ustring':            field2ustring,
>     'utokens':            field2utokens,
>     'ulines':             field2ulines,
>     'utext':              field2utext,
>     }
> 
> cheers, maik
> 
> ==============================================================
>