[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - IToIRegistry.py:1.1.4.13
Jim Fulton
jim@zope.com
Fri, 22 Feb 2002 16:10:48 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv27618
Modified Files:
Tag: Zope-3x-branch
IToIRegistry.py
Log Message:
Added getJustForType to the TypeRegistry.
=== Zope3/lib/python/Zope/ComponentArchitecture/IToIRegistry.py 1.1.4.12 => 1.1.4.13 ===
return self.get(interface, None)
-
+ def getJustForType(self, interface):
+ """Return the data for the type without falling back to base types
+ """
+ r = self._find(interface, None)
+ return r and r[1]