[Zope] [Fwd: TALs Expressions]

Ben Last (Zope) zope at benlast.com
Fri Jan 28 10:14:36 EST 2005


At the risk of being thought somewhat lateral here...
> <h2 tal:condition="template/title | template/id">Has a Title or Id</h2>

I'd do this as:
<h2 tal:condition="python:template.title or template.id">Has a Title or Id</h2>
...since the rules for Python expressions are generally easier to understand or clarify with the use of parentheses. :)

ben




More information about the Zope mailing list