Jean-Marc Orliaguet wrote:
> Is there any reason for not being able to unregister global utilities?
> Usually there are registered at startup in ZCML, but they can also be
> registered programatically with provideUtility().
> let's say that the startup process is done and my application wants to
> load new global utilities. If global utilities are used for registering
> global resources inside the application they might as well be
> unregistered when the application new longer needs them.
> just wondering, is it a technical limitation or is it the kind of thing
> one wouldn't want to do?

Jim's work on improving local component registration will make this
easily possible, also on a global level. See his jim-adapter branch.

Due to an implementation detail of the adapter registry (which is also
used to implement the utility registry), for now it might be possible to
register None as the utility in replacement of the old one. Not sure.


Zope3-dev mailing list

Reply via email to