[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - IToIRegistry.py:1.1.4.11
Jim Fulton
jim@zope.com
Fri, 22 Feb 2002 14:27:55 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv23524
Modified Files:
Tag: Zope-3x-branch
IToIRegistry.py
Log Message:
Added a getForType method to the TypeRegistry.
=== Zope3/lib/python/Zope/ComponentArchitecture/IToIRegistry.py 1.1.4.10 => 1.1.4.11 ===
if c is not None: return c
return self.get(None, None)
+
+ def getForType(self, interface):
+ return self.get(interface, None)