[Zope] problem with lines properties
Tres Seaver
tseaver@digicool.com
Mon, 09 Apr 2001 21:02:44 -0400
> Timothy Wilson <wilson@visi.com> wrote:
> On Mon, 9 Apr 2001, Casey Duncan wrote:
>
> > Setting a property type as lines does not guarantee that the value there
> > is a list. Are you marshalling the form field to lines on you ZClass
> > form?
> >
> > ala: <textarea name="lunch_menu:lines"...
>
> I think the correct syntax would be <textarea name="lunch_menu:list"...
>
> Yes, I'm doing that.
Nope, you want ':lines', to persuade ZPublisher's marshalling code
to split the submitted value into chunks at the newlines token.
':list' causes it to concatenate *multiple* submitted fields with
the same name into a list.
Tres.
--
===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org