[Zope3-checkins] SVN: Zope3/trunk/src/zope/interface/interfaces.py
Added documentation for registered method. I forgot to add this
Jim Fulton
jim at zope.com
Mon May 1 11:20:47 EDT 2006
Log message for revision 67803:
Added documentation for registered method. I forgot to add this
earlier.
Changed:
U Zope3/trunk/src/zope/interface/interfaces.py
-=-
Modified: Zope3/trunk/src/zope/interface/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/interface/interfaces.py 2006-05-01 15:13:36 UTC (rev 67802)
+++ Zope3/trunk/src/zope/interface/interfaces.py 2006-05-01 15:20:47 UTC (rev 67803)
@@ -660,6 +660,18 @@
provided interface, and a name.
"""
+ def registered(required, provided, name=u''):
+ """Return the component registered for the given interfaces and name
+
+ Unlike the lookup method, this methods won't retrieve
+ components registered for more specific required interfaces or
+ less specific provided interfaces.
+
+ If no component was registered exactly for the given
+ interfaces and name, then None is returned.
+
+ """
+
def lookup(required, provided, name='', default=None):
"""Lookup a value
More information about the Zope3-Checkins
mailing list