[Zope-CMF] Getting folder contents of objects derived form portal folder

Florent Guillaume fg@nuxeo.com
Sat, 1 Jun 2002 17:58:26 +0000 (UTC)


Rainer Thaden  <Thadi@gmx.de> wrote:
> In the actions box of the view 'emp1' the url for 'Folder Contents' is
> Employees/folder_contents and not Employees/emp1/folder_contents.
>
> I took a look into the source code of the actions tool and found that
> the getFilteredActionsFor(arg) method checks if arg is a portal folder
> and if not climbs in the containment hierarchy until it finds a portal
> folder and returns the actions for it.
> Why is the instance of my ZClass not considered as portal folder?

Your object must have isPrincipiaFolderish=1 for it to be considered a
folder.

Florent


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