[Zope-CMF] REQ: Make detecting Folder-like objects explicit.
Kent Polk
kent@goathill.org
5 Sep 2001 23:58:50 GMT
On 5 Sep 2001 17:20:00 -0500, Ulrich Eck wrote:
> While surfing through the sources of CMF i found the following part in the portal_actions tool:
>
> Line 165 ActionsTool.py:
>
> def listFilteredActionsFor(self, object=None):
> This part basically defines if the "folder_contents" action will be displayed in
> the actions-box.
>
> wouldn't it be better to provide a function e.g. isFolderish() for every portal object
> instead of directly accessing the <obj>.isPrincipiaFolderish attribute ??
> (like getId, manage_options() ...)
>
> I see these applications that might need such a thing:
> - Recently I saw a Proposal of CompoundDocuments, that need to be folderish, but
> should they show up as a folder if Reviewers/Users browses the folder_contents
This is exactly the problem I ran into with my folderish objects,
and what I thought the SkinnedFolders was supposed to alleviate.
(This very method is what got me in trouble).
Unfortunately, I haven't managed to get back to working on those
yet. So are you saying that you can't override the behavior for
SkinnedFolders here?