[Zope] problem with lines properties
Casey Duncan
cduncan@kaivo.com
Mon, 09 Apr 2001 09:08:30 -0600
Timothy Wilson wrote:
>
> On Sun, 8 Apr 2001, Jim Washington wrote:
>
> > Are you putting the data into the "lines" properties programmatically?
> > What does that code look like?
>
> No, I'm just entering them from the normal ZClass add form. Nothing
> fancy. The product I'm working on will keep track of our school's lunch
> menus. So I have a property lunch_menu that might contain:
>
> veal shank
> potato salad
> baked beans
> celery sticks
>
> (Not necessarily those items :-)
>
> The menu is rendered like this:
>
> <h2>Lunch</h2>
> <ul>
> <dtml-in lunch_menu>
> <dtml-let item=sequence-item>
> <li><dtml-var item></li>
> </dtml-let>
> </dtml-in>
> </ul>
>
> As I said, this doesn't work until I edit the instance and simply click on
> the "save changes" option. Weird.
>
> -Tim
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"...
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>