[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - Registry.py:1.1.2.2
Jim Fulton
jim@zope.com
Fri, 28 Dec 2001 08:39:43 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv15871
Modified Files:
Tag: Zope-3x-branch
Registry.py
Log Message:
Added missing method to get all items in registry, as defined by interfaces
=== Zope3/lib/python/Zope/App/Security/Registry.py 1.1.2.1 => 1.1.2.2 ===
If no object is registered, a KeyError is raised.
"""
- return self._byid[id]
+ return self._byid.get(id)
+
+ def getRegisteredObjects(self):
+ """Return all registered objects.
+ """
+ return self._byid.values()
def _clear(self):
# Map ids to instantiated objects