[Zope] R: [Zope] dtml-in and maps...
R. David Murray
bitz@bitdance.com
Tue, 11 Jul 2000 16:01:25 -0400 (EDT)
On Tue, 11 Jul 2000, Marcel Preda wrote:
> looks like the variable that you are using in <dtml-in ...>
> is noat a sequence (list || tuple)
>
> I suppose that your var is a dictionary
>
>
> Insted of :
> <dtml-in x mapping>
> you have to use:
> <dtml-in "[x]" mapping> as a list
> ||
> <dtml-in "(x,)" mapping> as a tuple
Note that this gives you one iteration of the dtml-in, with (if I understand
this right) x pushed on the namespace stack as another dictionary to look
things up in.
--RDM