[Zope3-checkins] CVS: Zope3/src/zope/component - interfaces.py:1.31
Jim Fulton
jim at zope.com
Sun Apr 11 14:16:42 EDT 2004
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv19303/src/zope/component
Modified Files:
interfaces.py
Log Message:
getUtilitiesFor now returns an iterable.
The doc also now says it returns name-utility pairs.
=== Zope3/src/zope/component/interfaces.py 1.30 => 1.31 ===
--- Zope3/src/zope/component/interfaces.py:1.30 Wed Apr 7 15:18:56 2004
+++ Zope3/src/zope/component/interfaces.py Sun Apr 11 14:16:41 2004
@@ -67,9 +67,9 @@
"""
def getUtilitiesFor(context, interface):
- """Look up the registered utilities that provide an interface.
+ """Return the utilitis that provide an interface
- Returns the list of utilities found
+ An iterable of utility name-value pairs is returned.
"""
# Adapter service
@@ -405,7 +405,7 @@
def getUtilitiesFor(interface):
"""Look up the registered utilities that provide an interface.
- If none is found, return an empty list
+ Returns an iterable of name-utility pairs.
"""
class IContextDependent(Interface):
More information about the Zope3-Checkins
mailing list