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

2006-04-12 Thread Lennart Regebro
On 4/11/06, Takahashi, Michael [EMAIL PROTECTED] 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 or object.meta_type == Folder # does work in python scripts or

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

2006-04-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: On 4/11/06, Takahashi, Michael [EMAIL PROTECTED] 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