[Zope] iterating dictionaries with dtml-in
David H
bluepaul at earthlink.net
Sun Sep 3 17:03:14 EDT 2006
Dieter Maurer wrote:
>Ferhat Ayaz wrote at 2006-9-2 04:40 -0700:
>
>
>>...
>>I want to do this with DTML.
>>
>><select>
>><dtml-in getDicts>
>><option>
>> HOW CAN I PUT the keys 'name' HERE ????
>></option>
>></dtml-in>
>></select>
>>(getDicts returns the above list of dictionaries)
>>
>>
>
>You probably need the "mapping" attribute of "dtml-in" -- and maybe some
>background reading (you should read the documentation (Zope Book 2.7 edition,
>online on plope.org).
>
>
>
>
>
Ferhat,
If you are new to Zope do yourself a favor and forget about DTML. Yeah
its fun and (seemingly) easy to learn. But I argue for Page Templates +
python. Python is so much clearer than dtml - and Page Templates +
python *is* the favored zope paradigm.
But if you insist - Casey Duncan wrote a nice product (dtml-eval) and an
interesting discussion about DTML and what to watch out for ...
http://www.zope.org/Members/Kaivo/EvalTag_HowTo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060903/56537204/attachment.htm
More information about the Zope
mailing list