[Zope] Examining Properties of Returned Object

Troy Farrell troy@entheossoft.com
Mon, 19 May 2003 23:39:34 -0500


What is calling your python script?  Is it TAL(ES), DTML, another python 
script, a zope product or an external method?  Unfortunately, each of 
these has some slightly different methods...  Did you try

obj.myattribute

or

getattr(obj, myattribute)

or (in TAL)

obj/myattribute

Thanks.
Troy

Samir Mishra wrote:
> Hello all,
> 
> I'm sure there's a way, just can't figure it out...
> 
> I have a python script returning an object. The result set I'm actually
> interested in is wrapped somewhere within this object. 
> 
> My question: how can I examine the properties/methods of an object returned
> by Python?
> 
> Thanks in advance.
> 
> Regards,
> Samir