[Zope] Object via id in PyScript

Sebastian Kors sebastian.kors@gmx.net
Mon, 23 Sep 2002 23:43:48 +0200


> Hi,
> Is there any way I can get a hold of an object vis its idin PyScript??
> 
> The reason being I have a PyScript that gets the id of an object as 
> argument and I want the title of that object.

Hi,
Try this:

the_title = getattr(context,some_id).title

With the variable "some_id" stands for your object.

 
> TIA
> AM

So long

Sebastian Kors