[Zope-dev] Is there a function to get the object type?
Takahashi, Michael
MTakahashi at oid.ucla.edu
Mon Apr 10 18:46:41 EDT 2006
Hi guys,
I'm trying to write a function that checks to see if the current object
is a 'Folder'.
I am using this tutorial as a reference:
http://plone.org/documentation/how-to/pre-populated-folder
To create a new content object, the following command is used:
parent.invokeFactory(id=id, type_name='Folder')
Is there a function that can check what type this newly created object
is? Obviously its 'Folder' in this example, but I'd like to be able to
get the type_name of an object returned anywhere in my site to see if it
is a 'Folder'.
Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-dev/attachments/20060410/cc1a6d40/attachment.htm
More information about the Zope-Dev
mailing list