[Zope3-dev] RFC: zcml:condition
Jim Fulton
jim at zope.com
Sat Feb 19 15:56:52 EST 2005
Fred Drake wrote:
> 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" />
Not really, that would include the file twice.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list