[Zope] Multiple conditions inside tales

Andreas Jung lists at zopyx.com
Tue Aug 22 10:42:48 EDT 2006



--On 22. August 2006 15:36:20 +0100 Jonathan Bowlas <me at jonbowlas.com> 
wrote:

> Hi All,
>
> Just a quickie to see if I can do this:
>
> tal:condition="python:context.REQUEST.model.meta_type=='Silva Publication'
> or context.REQUEST.model.is_default()"
>


If the first part of the OR clause evaluates to True then there is no need
to evaluate the second part (optimization).

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060822/c8e38db6/attachment.bin


More information about the Zope mailing list