[Zope] Multiple conditions inside tales

Jonathan Bowlas me at jonbowlas.com
Tue Aug 22 12:37:40 EDT 2006


So what if the first part evaluates to false? Which is what would happen in
my case, it doesn't then test for the 2nd condition?

J

-----Original Message-----
From: Andreas Jung [mailto:lists at zopyx.com] 
Sent: 22 August 2006 15:43
To: me at jonbowlas.com; zope at zope.org
Subject: Re: [Zope] Multiple conditions inside tales



--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




More information about the Zope mailing list