oh...sorry... I should have known this as it is, in fact, clearly shown in the manual. Thank you much! John.
-----Original Message----- From: Michel Pelletier [SMTP:michel@digicool.com] Sent: Thursday, April 01, 1999 11:41 PM To: TFE MMS JARVIS JOHN; zope@zope.org Subject: RE: [Zope] DTML question
-----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