22 Mar
2000
22 Mar
'00
1:05 a.m.
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