[Zope3-dev] RFC: zcml:condition

Jim Fulton jim at zope.com
Sat Feb 19 16:00:32 EST 2005


Dieter Maurer wrote:
> ... ZCML conditional ...
> 
> There might be a wish for on "or" operator.
> 
> 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)"

This feels like a slippery slope, at the bottom of
which is Python. :)

Perhaps, in this example, A and B should each provide
"online".  After all, the application doesn't depend
on online_A or online_B, it depends on the part that's
common, which is online.

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