----- "Philipp von Weitershausen" <[EMAIL PROTECTED]> wrote:
> Wichert Akkerman wrote:
> > Previously Ross Patterson wrote:
> >> Chris Withers <[EMAIL PROTECTED]> 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.  :)
> > 
> > You need a bit of extra information that is not in the interface:
> where
> > to find the registry. To get the global registry you can do this:
> > 
> >    from zope.component.globalregistry import base as base_registry
> 
> I think you should use zope.component.getGlobalSiteManager() for
> this.

FWIW, I started documenting the complete API here:

http://www.muthukadan.net/docs/zca.html

Regards,
Baiju M

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to