cleanup_zope_persistent_registry 0.1.1

Cleanup of keys leftover in Zope component registries

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in cleanup_zope_persistent_registry 0.1.1:

  • Fix : cleanup was not properly persisted.
Read full changelog
send us
an update
LICENSE TYPE:
Other/Proprietary License
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Godefroid Chapelle
HOMEPAGE:
pypi.python.org
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
Before 3.5.2, zope.interface was broken : it did not remove keys when unregistering adapters or unsubscribing subscribers.

This implies that even when proper unregistration of adapters and subscribers had been done, interfaces were left over, pickled in persistent registries.

This leads to nasty bugs when the code that defined those interfaces is removed from the system.

cleanup_zope_persistent_registry defines a function that cleans up those leftover interfaces. It must be called on a site manager, instance of PersistentComponents like the local site manager of a Plone site:

from zope.component import getSiteManager
from cleanup_zope_persistent_registry import cleanup_leftovers

site_manager = getsitemanager(my_plone_site)
cleanup_leftovers(site_manager)

Last updated on August 24th, 2012

requirements

#Zope registry #component registries #Zope #registry #cleanup #registries

Add your review!

SUBMIT