[Zope] Get object by object id

Borislav borislavd@gmx.net
Thu, 05 Sep 2002 16:58:35 -0500


What is the easiest way to get an object value given the object id?
There is an API method objectValues('MetaType'), but I couldn't find a 
method analogous to getObject(objectId). Currently I'm getting all 
objects in the container with objectValues() and then iterating through 
them checking their id until I find the needed object. I suspect there 
is a better way that I'm not aware of. Any suggestions?

--Borislav