[Zope] sequence-item naming

Michel Pelletier michel@digicool.com
Tue, 21 Mar 2000 17:05:10 -0800


Ken Kinder wrote:
> 
> I am trying to use a call like this:
> 
> <dtml-in assignments>
>   <dtml-call "foo(var=sequence-item)">
> </dtml-in>
> 
> But it gives me Name Error: sequence.
> 
> Two questions:
>   (1) Why are there -'s in variable names?

Legacy.  python expressions were added after sequence-item.

>   (2) How do I get around that?

Use the namespace object as a mapping:

<dtml-call "foo(var=_['sequence-item'])">

-Michel