[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - Registry.py:

Jim Fulton jim@zope.com
Fri, 28 Dec 2001 11:22:00 -0500

Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv20747

Modified Files:
      Tag: Zope-3x-branch
Log Message:
Changed 'get' methods in registries to return None if no matching
object can be found.

=== Zope3/lib/python/Zope/App/Security/Registry.py => ===
     def getRegisteredObject(self, id):
         """Return the object registered under the given id.
-        If no object is registered, a KeyError is raised.
         return self._byid.get(id)