[Zope] Multiple conditions inside tales

Dieter Maurer dieter at handshake.de
Tue Aug 22 13:14:21 EDT 2006


Jonathan Bowlas wrote at 2006-8-22 15:36 +0100:
>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()"
>
>When I test it seems to ignore the 2nd condition, so could anyone suggest
>the correct syntax.

The syntax is correct (at least, if you mean "or" and not "and").
And it should work...



-- 
Dieter


More information about the Zope mailing list