[Zope] DTML question

Michel Pelletier michel@digicool.com
Thu, 1 Apr 1999 09:40:55 -0500


> -----Original Message-----
> From: TFE MMS JARVIS JOHN [mailto:jarvis.sd082@ex.tel.co.jp]
> Sent: Wednesday, March 31, 1999 9:35 PM
> To: zope@zope.org
> Subject: RE: [Zope] DTML question
> 
> 
>  I'm still left with a question, though: How would you go about using
>  sequence-item, etc. in a python expression? Python sees it as
>  'sequence minus item' and I get a 'Name Error: sequence' exception.
> 

<!--#var "_['sequence-item'] == 'gotcha'"-->

The _[] mapping is a namespace mapping.  It is used to access DTML
variables such as sequence-item which aren't very expression friendly.

-Michel