API Documentation

Folderish type interface.

$Id: Folderish.py 40138 2005-11-15 17:47:37Z jens $


class Folderish

General interface for "folderish" items.


Methods

contentItems(spec=None, filter=None):

List contentish and folderish sub-objects and their IDs.

Provide a filtered view onto objectItems, allowing only PortalFolders and PortalContent-derivatives to show through.

The spec argument is deprecated and will be removed in CMF 2.0.

Permission
Always available (not publishable)
Returns
List of (object ID, object) tuples

contentValues(spec=None, filter=None):

List contentish and folderish sub-objects.

Provide a filtered view onto objectValues, allowing only PortalFolders and PortalContent-derivatives to show through.

The spec argument is deprecated and will be removed in CMF 2.0.

Permission
Always available (not publishable)
Returns
List of objects

listFolderContents(spec=None, contentFilter=None):

List viewable contentish and folderish sub-objects.

Hook around contentValues to let folder_contents be protected. Duplicating skip_unauthorized behavior of dtml-in.

The spec argument is deprecated and will be removed in CMF 2.0.

Permission
List folder contents
Returns
List of objects

contentIds(spec=None, filter=None):

List IDs of contentish and folderish sub-objects.

Provide a filtered view onto objectIds, allowing only PortalFolders and PortalContent-derivatives to show through.

The spec argument is deprecated and will be removed in CMF 2.0.

Permission
Always available (not publishable)
Returns
List of object IDs