[Zope] List of objects

Dimitris Andrakakis dandraka_info@yahoo.com
Thu, 29 Mar 2001 04:01:12 +0300


Hi,
I trying to make a list of objects in a method, to use
in a dtml-in. Something simple like:

<dtml-in ['Jim', 'Nick', 'John']>
Hello <dtml-var id>, how are you ?<br>
</dtml-in>

but it won't work :-(
a) Does this possibility exist ? Or do I have to use
documents ? I know that, if I have documents with ids
Jim, Nick & John in a folder (say "friends") this will work:

<dtml-with friends>
<dtml-in ['Jim', 'Nick', 'John']>
Hello <dtml-var id>, how are you ?
</dtml-in>
</dtml-with>

...but its not what I want. I've been looking all over,
but didn't find anything. Maybe its a Python syntax I need ?
(I don't know python, but its on my plans).

b) If such a syntax does exist, what's the var containing the
list item ? id ? or sth else ?

Thx,
Dimitris @ Nuclear