[Zope] problem with lines properties

Timothy Wilson wilson@visi.com
Sun, 8 Apr 2001 14:43:08 -0500 (CDT)


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

--
Tim Wilson      | Visit Sibley online:         | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |                              | http://slashdot.org/
wilson@visi.com |   <dtml-var pithy_quote>     | http://linux.com/