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

2006-04-18 Thread suresh
Tres Seaver wrote: -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

[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