[Zope-dev] unregistering persistent utilities

Christian Theune ct at gocept.com
Wed Jul 29 01:44:38 EDT 2009


Hi,

On 07/28/2009 08:26 AM, David Glick wrote:
> Is there a recommended way or example code somewhere for removing a
> utility registration from a persistent component registry, when that
> utility's module no longer exists?
>
> The use case is in Plone, which has a local
> zope.app.cache.ram.IRAMCache utility.  Now that Hanno has factored out
> the RAM cache into zope.ramcache, we'd like the persistent utility to
> reference zope.ramcache, so that we can remove our zope.app.cache
> dependency.

Sorry if this is too dense, feel free to ask for more details.

If the class is basically the same but moved around, you might want to 
look at "zodbupdate": http://pypi.python.org/pypi/zodbupdate/0.2

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development


More information about the Zope-Dev mailing list