[Zope-dev] Re: Is there a function to get the object type?

suresh suresh_vv at yahoo.com
Tue Apr 18 03:02:40 EDT 2006


Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Lennart Regebro wrote:
> 
>>On 4/11/06, Takahashi, Michael <MTakahashi at oid.ucla.edu> wrote:
>>
>>
>>> I'm trying to write a function that checks to see if the current object is
>>>a 'Folder'.
>>
>>
>>several ways:
>>
>>    isinstance(object, Folder) # does not work in python scripts\
> 
> 
> Don't forget 'sametype' inside PythonScripts:
> 
>    sametype(object, another_object)

You mean same_type ;)

-- 
Thank you and Cheers,

Suresh V.
CTO, ParTecs, Bangalore
http://www.partecs.com
Plone-Zope-Python Consulting



More information about the Zope-Dev mailing list