[Zope-dev] Re: zcml filtering

Marius Gedminas marius at gedmin.as
Wed Aug 6 08:39:13 EDT 2008


On Tue, Aug 05, 2008 at 10:36:30PM +0100, Martin Aspeli wrote:
> Subscribers and subscription adapters are particularly bad in this way, 
> since they are unnamed and thus can't be "overridden", only amended to.
> 
> We've talked about an "off" switch for ZCML before. Given that we have a 
> configuration machine that's capable of doing overrides based on 
> discriminators, why couldn't we have support for negatives, e.g.
> 
> <unconfigure>
>    <utility ... />
> </unconfigure>
> 
> This could use a special _context that would record callables and 
> discriminators, and then look for the corresponding 
> callables/discriminators in the real context and remove them before that 
> context was configured.

Subscribers don't have discriminators, unfortunately.

Marius Gedminas
-- 
Be cheerful. Strive to be happy

Oh, and we just set fire to your desktop.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20080806/a4cfaf3e/attachment.bin


More information about the Zope-Dev mailing list