[Zope-dev] Re: Is there a function to get the object type?
Tres Seaver
tseaver at palladion.com
Wed Apr 12 15:01:11 EDT 2006
-----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)
Tres.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEPU53+gerLs4ltQ4RAvv2AJ9w0rChvG53Kx3SuUPAl7kArPOZwACgkJ6Z
EMIfMgEoFlDF6WJXGgeR9Lk=
=XOO2
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list