22 Aug
2006
22 Aug
'06
4:37 p.m.
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@zopyx.com] Sent: 22 August 2006 15:43 To: me@jonbowlas.com; zope@zope.org Subject: Re: [Zope] Multiple conditions inside tales --On 22. August 2006 15:36:20 +0100 Jonathan Bowlas <me@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