Comment 5 for bug 240631

Revision history for this message
Wichert Akkerman (wichert) wrote :

I see no mention of IRegistration anywhere. zope.component.interfaces says:

    def registeredUtilities():
        """Return an iterable of IUtilityRegistrations.

        These registrations describe the current utility registrations
        in the object.
        """

However a recursive grep through all of zope.* reveals that IUtilityRegistrations does not exist anywhere. The same holds for IAdapterRegistrations, ISubscriptionAdapterRegistrations and IHandlerRegistrations.

Looking more.. I see that this is a very unfortunate typography problem: what is returned is an iterable of IUtilityRegistration (singular) instances. The plural form sounded perfectly sensible to me, which has led me into a dead end twice now. Gah.