[Zope3-checkins] CVS: Zope3/src/zope/interface - implementor.py:1.4 interfaces.py:1.12

Fred L. Drake, Jr. fred@zope.com
Thu, 3 Apr 2003 17:06:06 -0500


Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv10877/interface

Modified Files:
	implementor.py interfaces.py 
Log Message:
Added configuration user-interface for the local utility service.

=== Zope3/src/zope/interface/implementor.py 1.3 => 1.4 ===
--- Zope3/src/zope/interface/implementor.py:1.3	Fri Mar 21 16:06:47 2003
+++ Zope3/src/zope/interface/implementor.py	Thu Apr  3 17:05:35 2003
@@ -80,7 +80,11 @@
             return c[1]
 
         return default
-        
+
+    def getRegisteredMatching(self):
+        return [(iface, impl)
+                for iface, (regiface, impl) in self._reg.items()
+                if iface is regiface]
 
     def get(self, interface, default=None):
         """Find the component registered for the interface


=== Zope3/src/zope/interface/interfaces.py 1.11 => 1.12 ===
--- Zope3/src/zope/interface/interfaces.py:1.11	Tue Mar 18 07:29:56 2003
+++ Zope3/src/zope/interface/interfaces.py	Thu Apr  3 17:05:35 2003
@@ -433,6 +433,17 @@
 
         """
 
+    def getRegisteredMatching():
+        """Return a sequence of two-tuples, each tuple consisting of:
+
+        - interface
+
+        - registered object
+
+        One item is returned for each registration.
+
+        """
+
 
 class IImplements(Interface):
     """Functions for reasoning about implementation assertions