[Zope-dev] Re: unregistering components?

Ross Patterson me at rpatterson.net
Sat Nov 24 14:44:56 EST 2007


Chris Withers <chris at simplistix.co.uk> writes:

> Hi All,
>
> Does the component architecture support un-registering adapters and
> the like?

>From zope.component.interfaces:

class IComponentRegistry(interface.Interface):
    """Register components
    """
<snip...>
    def unregisterUtility(component=None, provided=None, name=u''):
        """Unregister a utility
<snip...>
    def unregisterAdapter(factory=None, required=None,
                          provided=None, name=u''):
        """Register an adapter factory
<snip...>
    def unregisterSubscriptionAdapter(factory=None, required=None,
                                      provides=None, name=u''):
        """Unregister a subscriber factory.
<snip...>
    def unregisterHandler(handler=None, required=None, name=u''):
        """Unregister a handler.
<snip...>

That'll do it, I think.  :)

Ross



More information about the Zope-Dev mailing list