[Zope] dtml-in and dictionaries

Jens Vagelpohl jens@zope.com
Thu, 20 Sep 2001 19:45:03 -0400


if you have a dictionary with keys 'a', 'b', 'c' the following should work:
:

<dtml-in dict mapping>
   <dtml-var name="a">
   <dtml-var name="b">
   <dtml-var name="c">
</dtml-in>

jens


On Thursday, September 20, 2001, at 07:21 , Mitchell L Model wrote:
> I couldn't get the above suggestion to work, but if I replace 'value' 
> with 'item, it worked:
>
> <dl>
> <dtml-in "dict.items()">
> <dt><dtml-var sequence-key>
> <dd><dtml-var sequence-item>
> </dtml-in>
> </dl>
>
> Thanks for the suggestion.
>
> I'd still like to see a dtml-in example using mapping.