Re: [Zope] TAL conditional expression

2008-09-08 Thread David Bear
many thanks. I suppose I did not understand that a request.form object is given all objects 'requested' even if they are a macro in a template that is called by another template, or a fill-slot that is satisfied by another template. On 9/5/08, Andreas Jung [EMAIL PROTECTED] wrote: --On 5.

Re: [Zope] TAL conditional expression

2008-09-06 Thread Andreas Jung
--On 5. September 2008 13:05:23 -0700 David Bear [EMAIL PROTECTED] wrote: I would like to test the value of a field entered on a form in a zpt, but I'm don't know the syntax basically I would like to do something like this div tal:condition=request/form/fieldA=1 do this p

Re: [Zope] TAL conditional expression

2008-09-05 Thread Paul Winkler
On Fri, Sep 05, 2008 at 01:05:23PM -0700, David Bear wrote: Also, I would like to be able to use the same request object in both my template and the macro, but my macro doesn's seem to have access to the same request object. It is the same request. -- Paul Winkler http://www.slinkp.com