[Zope] TAL conditional expression
JPenny at ykksnap-america.com
JPenny at ykksnap-america.com
Fri Sep 5 16:55:33 EDT 2008
zope-bounces at zope.org wrote on 09/05/2008 04:05:23 PM:
> 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>
<div tal:condition="python:request['fieldA']==1">
...
</div>
tal has no expression language.
>
> 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 _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list