[Zope] Object via id in PyScript

AM list_subscriber@neurobs.com
Mon, 23 Sep 2002 18:22:33 -0700


Thanks a lot... thats perfect

AM

Sebastian Kors wrote:

>>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
>
>
>
>.
>
>  
>

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================