[Zope] How to iterate over lists within properties?

Ausum augusto@artlover.com
Wed, 18 Apr 2001 00:26:38 -0500


I have documents that need to store a list of values within one or more of its
properties, and then be able to retrieve those values through a dtml-in
procedure.

The lines property type is the right choice to store this list, but I haven't
found how to append values to it nor how to iterate those values. About the
latest, and after tried it, it looks like objectItems() nor objectValues() will
work. Anyway, this is what I thought it would do the job, but it didn't:

<dtml-with "dtml_document.line_property_id">
   <dtml-in objectValues()>
      <dtml-var sequence-item><br>
   </dtml-in>
</dtml-with>

Am I missing something? Is there a workaround other than using folders instead
of documents? 


Thanks in advance,


Ausum