[Zope] Get object by object id

Marco Catunda catunda@pobox.com
05 Sep 2002 19:06:13 -0300


You can use dictonary syntax:

folder[id]

--
Marco Catunda


On Thu, 2002-09-05 at 18:58, Borislav wrote:
> 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