[Zope-CMF] Testing object types

Florent Guillaume fg@nuxeo.com
Thu, 20 Mar 2003 19:59:42 +0100


> Okay, I know this has got to be a newbie questions, but how do I test
> for type of CMF type that is being displayed?  That is, is it a 'Portal
> File', 'Portal Folder', etc.

ob.getPortalTypeName() is the portal type id
ob.Type() is the portal type's title (=id if no title).

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com