[Zope3-checkins] CVS: Zope3/src/zope/component - interfaces.py:1.30
Jim Fulton
jim at zope.com
Wed Apr 7 15:18:57 EDT 2004
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv14248/src/zope/component
Modified Files:
interfaces.py
Log Message:
Defined a new interface, IComponentRegistry, that defines a method,
registrations, for getting all of the registrations from a registry as
objects. This simple method is meant to replace getRegisteredMatching.
=== Zope3/src/zope/component/interfaces.py 1.29 => 1.30 ===
--- Zope3/src/zope/component/interfaces.py:1.29 Wed Mar 31 18:26:25 2004
+++ Zope3/src/zope/component/interfaces.py Wed Apr 7 15:18:56 2004
@@ -329,6 +329,14 @@
If the component can't be found, the default is returned.
"""
+class IComponentRegistry(Interface):
+ """Object that supports component registry
+ """
+
+ def registrations():
+ """Return an iterable of component registrations
+ """
+
class IServiceService(Interface):
"""A service to manage Services."""
More information about the Zope3-Checkins
mailing list