[Zope] TAL conditional expression

David Bear David.Bear at asu.edu
Fri Sep 5 16:05:23 EDT 2008


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 metal:use-macro="here/atemplate/macros/may" />
</div>

but this doesn't seem to want to work.

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.

-- 
David Bear
College of Public Programs at ASU
602-464-0424
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20080905/abbd5bde/attachment.html 


More information about the Zope mailing list