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.
I see no mention of IRegistration anywhere. zope.component. interfaces says:
def registeredUtili ties(): ations.
"""Return an iterable of IUtilityRegistr
These registrations describe the current utility registrations
in the object.
"""
However a recursive grep through all of zope.* reveals that IUtilityRegistr ations does not exist anywhere. The same holds for IAdapterRegistr ations, ISubscriptionAd apterRegistrati ons and IHandlerRegistr ations.
Looking more.. I see that this is a very unfortunate typography problem: what is returned is an iterable of IUtilityRegistr ation (singular) instances. The plural form sounded perfectly sensible to me, which has led me into a dead end twice now. Gah.