[Zope3-checkins] CVS: Zope3/src/zope/component - __init__.py:1.16 interfaces.py:1.17

Mohan Chandra mchandra at zeomega.com
Fri Dec 19 11:53:51 EST 2003


Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv28838/src/zope/component

Modified Files:
	__init__.py interfaces.py 
Log Message:
Removal of Databaseconnection service 



=== Zope3/src/zope/component/__init__.py 1.15 => 1.16 ===
--- Zope3/src/zope/component/__init__.py:1.15	Wed Dec 17 05:06:59 2003
+++ Zope3/src/zope/component/__init__.py	Fri Dec 19 11:53:20 2003
@@ -58,6 +58,9 @@
     return getService(context, 'Utilities').queryUtility(
         interface, default, name)
 
+def getUtilitiesFor(context, interface):
+    return getService(context, 'Utilities').getUtilitiesFor(interface)
+    
 # Adapter service
 
 def getAdapter(object, interface, name='', context=None):


=== Zope3/src/zope/component/interfaces.py 1.16 => 1.17 ===
--- Zope3/src/zope/component/interfaces.py:1.16	Wed Dec 17 05:06:59 2003
+++ Zope3/src/zope/component/interfaces.py	Fri Dec 19 11:53:20 2003
@@ -66,6 +66,13 @@
         Returns the nearest utility to the context that implements
         the specified interface.  If one is not found, returns default."""
 
+    def getUtilitiesFor(context, interface):
+        """Look up the registered utilities that provide an interface.
+
+        Returns the list of utilities found
+
+        """
+        
     # Adapter service
 
     def getAdapter(object, interface, context=None):




More information about the Zope3-Checkins mailing list