[Grok-dev] How do I override a GlobalUtility?

Sebastian Ware sebastian at urbantalk.se
Thu Jan 5 14:00:04 UTC 2012


Thank's Souheil and Martin! This was all useful to know!

Mvh Sebastian

5 jan 2012 kl. 12.51 skrev Souheil CHELFOUH:

> Hi Sebastian. Please note that you can also, if the utility is reallt
> there against your will, unregister it, arbitrarly.
> You can use : zope.components.unregisterUtility(....)
> 
> There's no reason to keep things you really don't need and go through
> all the overriding stuff.
> Of course, this is only to be used in your own environment and
> projects, not to distribute with some generic plugins.
> 
> - Souheil
> 
> 
> 2012/1/5 Martin Aspeli <optilude+lists at gmail.com>:
>> On 5 January 2012 11:25, Sebastian Ware <sebastian at urbantalk.se> wrote:
>>> Is it enough for me to register my own GlobalUtility with exactly the same configuration but in a file called "overrides.zcml"?
>> 
>> Probably, if overrides are processed in Grok, yes. The directive to do
>> it is <includeOverrides />, normally run as part of site.zcml.
>> 
>> Martin
>> _______________________________________________
>> Grok-dev mailing list
>> Grok-dev at zope.org
>> https://mail.zope.org/mailman/listinfo/grok-dev




More information about the Grok-dev mailing list