[Zope] How to iterate over lists within properties?

Zopista zopista@zopezen.org
Tue, 17 Apr 2001 22:37:12 -0700


To iterate just do:

<dtml-in "dtml_document.line_property_id">
  <dtml-var sequence-item>
</dtml-in>

--
  Zopista
----- Original Message -----
From: "Ausum" <augusto@artlover.com>
To: <zope@zope.org>
Sent: Tuesday, April 17, 2001 10:26 PM
Subject: [Zope] How to iterate over lists within properties?


> 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
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>