[Zope] Re: Get object by object id
   
    Maik Jablonski
     
    maik.jablonski@uni-bielefeld.de
       
    Fri, 06 Sep 2002 06:17:20 +0200
    
    
  
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
hi,
you can use:
getattr(containerObject,objectId)
cheers, maik