[Zope3-dev] RFC: zcml:condition

Fred Drake fdrake at gmail.com
Sat Feb 19 14:36:36 EST 2005


On Sat, 19 Feb 2005 18:48:12 +0100, Dieter Maurer <dieter at handshake.de> wrote:
> Say we have two online help systems "A" and "B" which provide
> similar APIs but each with special extensions.
> 
> Then an application might want to say:
> 
>      condition="have(online_A) or have(online_B)"

That's easy:

<include zcml:condition="have online_A" file="helpstuff.zcml" />
<include zcml:condition="have online_B" file="helpstuff.zcml" />


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation


More information about the Zope3-dev mailing list