[Zope] problem with lines properties

Casey Duncan cduncan@kaivo.com
Mon, 09 Apr 2001 10:33:15 -0600


Timothy Wilson 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.
> 
> -Tim
> 

Actually no. List will not work. List assumes there are multiple fields
with that name. It then creates a list of their values.

Lines on the other hand takes a single string field, splits it on
carriage returns and returns the list, which is what I believe you want.

Try it with lines.

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>