zope.component: broken interface definition for unregisteredAdapter

Bug #158580 reported by Andreas Jung
2
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.component
Won't Fix
Undecided
Unassigned

Bug Description

zope/component/interfaces.py contains this for unregisterAdaper() which is appearently wrong
(seems to be the same docstring as for registerAdapter())

def unregisterAdapter(factory=None, required=None,
                          provided=None, name=u''):
        """Register an adapter factory

        A boolean is returned indicating whether the registry was
        changed. If the given component is None and there is no
        component registered, or if the given component is not
        None and is not registered, then the function returns
        False, otherwise it returns True.

        Parameters:

        factory
            This is the object used to compute the adapter. The
            factory can be None, in which case any factory
            registered to implement the given provided interface
            for the given required specifications with the given
            name is unregistered.

        required
            This is a sequence of specifications for objects to be
            adapted. If the factory is not None and the required
            arguments is omitted, then the value of the factory's
            __component_adapts__ attribute will be used. The
            __component_adapts__ attribute attribute is normally
            set in class definitions using adapts function, or for
            callables using the adapter decorator. If the factory
            is None or doesn't have a __component_adapts__ adapts
            attribute, then this argument is required.

        provided
            This is the interface provided by the adapter and
            implemented by the factory. If the factory is not
            None and implements a single interface, then this
            argument is optional and the factory-implemented
            interface will be used.

        name
            The adapter name.

        An Unregistered event is generated with an IAdapterRegistration.

Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in zope.component:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.