[Zope] how can I ask an object whether it is folderish?

Jim Washington jwashin@vt.edu
Wed, 10 Oct 2001 10:58:18 -0400


Robert Rottermann wrote:

>Hi there,
>The subject says it all.
>Do I have to try to call objectValues within a try clause, or is there an
>other way.
>
Most folderish things (particularly if they are descended from Folder) 
have a property of isPrincipiaFolderish.

Used like:

if objectname.isPrincipiaFolderish:
  #object is folderish

Works for me...

-- Jim Washington