26 Oct
1999
26 Oct
'99
10:29 p.m.
-----Original Message----- From: Ben Glazer <glazer@scicomp.com> To: Zope Mailing List <zope@zope.org> Cc: Robert Young <ryoung@scicomp.com>; Elaine Kant <kant@scicomp.com> Date: Tuesday, October 26, 1999 6:29 PM Subject: [Zope] Using batch variables in expressions
I want to verify that certain fields in a form have been entered. Here's a code snippet I've tried to use:
<dtml-let required="('first', 'last', 'email')"> <dtml-in required> <dtml-if expr="REQUEST.form[sequence-item]"> <dtml-var sequence-item> exists </dtml-if> </dtml-in> </dtml-let>
The way to get around python choking on this is to look up sequence-item in the namespace: <dtml-if expr="REQUEST.form[_['sequence-item']]"> Kevin