[Zope] Using DTML - I'm too stupid

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Sun, 11 Apr 1999 13:06:34 -0400 (EDT)


On Sat, 10 Apr 1999, Oliver Thuns wrote:

> ><!--#var "w['A']"-->
> >
> >   This works for me.
> 
> This works for me too :-))) Thanks
> But I have another little problem. I have a array of dictonaries
> 
> {'Pos': [{'a': '123', 'b': '456', 'c': '789'}, {'a': '321', 'b': '654',
> 'c': '987'}]}
> 
> and I want to iterate over this array:
> 
> <!--#in Pos-->
>   <!--#var ???-->
> <!--#/in-->
> 

the <!--# in ...  construct can take an extra argument 'mapping' that
tells the iterator how to look for subelements. For instance:
<!--# in mydict mapping-->
you can also use the <!--# with Pos--> construct. I believe they are all
explained in the DTML manual.

Pavlos