[Zope] testing for folders

Casey Duncan casey@zope.com
Thu, 21 Mar 2002 09:32:38 -0700


isAUserFolder: self explanatory

isAnObjectManager: Subclasses object manager, the standard Zope object 
container.

isPrincipiaFolderish: Is a container object, possibly other than an 
object manager.

In short, all object managers are folderish, but not all folderish 
objects are object managers.

You shouldn't need to worry about this though since all user folders are 
always named "acl_users" AFAIK. Just look for objects with that id 
recursively. ZopeFind may be of help for this.

hth,

-Casey

Tom Cameron wrote:
> I am trying to traverse all children of a folder and find all users in all
> userfolders.
> 
> I have discovered the following attributes:
>     isAUserFolder
>     isAnObjectManager
>     isPrincipiaFolderish
> 
> Which I guess were created for this type of task.
> 
> But I am not sure what the difference is between 'isAnObjectManager' and
> 'isPrincipiaFolderish'.
> 
> Could someone explain when I should use each of them.
> 
> Thanks
> 
> Tom