[Zope] sequence-item naming

Curtis Maloney curtis@umd.com.au
Wed, 22 Mar 2000 12:09:53 +1100


On Wed, 22 Mar 2000, 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?
>   (2) How do I get around that?

I asked much the same question whilst replying to a very similar question
recently.  the -'s in the names is from times predating Python expressions
(afaik).

to access that var, use the _ namespace:

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

-- 
Have a better one,
	Curtis.

<dtml-var standard_work_disclaimer>