= Products.CMFCore.PortalFolder.PortalFolder = {{{ #!html
Package Products :: Package CMFCore :: Module PortalFolder :: Class PortalFolder

Type PortalFolder

CMFCatalogAware --+
                  |
    DynamicType --+
                  |
         Folder --+
                  |
                 PortalFolder


Implements portal content management, but not UI details.


Method Summary
  __init__(self, id, title)
  allowedContentTypes(self)
List type info objects for types which can be added in this folder.
  checkIdAvailable(self, id)
  content_type(self)
WebDAV needs this to do the Right Thing (TM).
  contentIds(self, spec, filter)
Provide a filtered view onto 'objectIds', allowing only PortalFolders and PortalContent-derivatives to show through.
  contentItems(self, spec, filter)
Provide a filtered view onto 'objectItems', allowing only PortalFolders and PortalContent-derivatives to show through.
  contentValues(self, spec, filter)
Provide a filtered view onto 'objectValues', allowing only PortalFolders and PortalContent-derivatives to show through.
  decodeFolderFilter(self, encoded)
Parse cookie string for using variables in dtml.
  Description(self)
Implement dublin core Description
  edit(self, title, description)
Edit the folder title (and possibly other attributes later)
  encodeFolderFilter(self, REQUEST)
Parse cookie string for using variables in dtml.
  indexObject(self)
  inheritedAttribute(class, name)
Get an attribute that would be inherited if the given (extension) class did not define it.
  invokeFactory(self, type_name, id, RESPONSE, *args, **kw)
Invokes the portal_types tool.
  listFolderContents(self, spec, contentFilter)
Hook around 'contentValues' to let 'folder_contents' be protected.
  manage_addFolder(self, id, title, REQUEST)
Add a new folder-like object with id id.
  manage_addPortalFolder(self, id, title, REQUEST)
Add a new PortalFolder object with id id.
  MKCOL_handler(self, id, REQUEST, RESPONSE)
Handle WebDAV MKCOL.
  PUT_factory(self, name, typ, body)
Dispatcher for PUT requests to non-existent IDs.
  reindexObject(self, idxs)
  setDescription(self, description)
Edit the folder description.
  setTitle(self, title)
Edit the folder title.
  Title(self)
Implement dublin core Title
  Type(self)
Implement dublin core type
  unindexObject(self)

Class Variable Summary
tuple __ac_permissions__ = (('Add portal content', ('invokeFac...
str __call__ = '<Not Accessible>'
str __delattr__ = '<Not Accessible>'
str __getattr__ = '<Not Accessible>'
tuple __implements__ = (<Interface Products.CMFCore.interfaces...
str __setattr__ = '<Not Accessible>'
NoneType allowedContentTypes__roles__ = None                                                                  
NoneType contentIds__roles__ = None                                                                  
NoneType contentItems__roles__ = None                                                                  
NoneType contentValues__roles__ = None                                                                  
NoneType decodeFolderFilter__roles__ = None                                                                  
str description = ''
NoneType encodeFolderFilter__roles__ = None                                                                  
tuple manage_options = ({'action': 'manage_main', 'help': ('OF...
str meta_type = 'Portal Folder'
tuple meta_types = ()
str portal_type = 'Folder'

Method Details

allowedContentTypes(self)

List type info objects for types which can be added in this folder.

content_type(self)

WebDAV needs this to do the Right Thing (TM).

contentIds(self, spec=None, filter=None)

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

If 'kw' passed, use them to filter the results further, qua the standard Zope filter interface.

contentItems(self, spec=None, filter=None)

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

contentValues(self, spec=None, filter=None)

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

decodeFolderFilter(self, encoded)

Parse cookie string for using variables in dtml.

Description(self)

Implement dublin core Description

edit(self, title='', description='')

Edit the folder title (and possibly other attributes later)

encodeFolderFilter(self, REQUEST)

Parse cookie string for using variables in dtml.

invokeFactory(self, type_name, id, RESPONSE=None, *args, **kw)

Invokes the portal_types tool.

listFolderContents(self, spec=None, contentFilter=None)

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

manage_addFolder(self, id, title='', REQUEST=None)

Add a new folder-like object with id id. IF present, use the parent object's 'mkdir' action; otherwise, just add a PortalFolder. to take control of the process by checking for a 'mkdir' action.

manage_addPortalFolder(self, id, title='', REQUEST=None)

Add a new PortalFolder object with id id.

MKCOL_handler(self, id, REQUEST=None, RESPONSE=None)

Handle WebDAV MKCOL.

PUT_factory(self, name, typ, body)

Dispatcher for PUT requests to non-existent IDs. Returns an object of the appropriate type (or None, if we don't know what to do).

setDescription(self, description)

Edit the folder description.

setTitle(self, title)

Edit the folder title.

Title(self)

Implement dublin core Title

Type(self)

Implement dublin core type


Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Add portal content',
  ('invokeFactory', 'checkIdAvailable'),
  ('Owner', 'Manager')),
 ('Add portal folders',
  ('manage_addPortalFolder', 'manage_addFolder'),
  ('Owner', 'Manager')),
 ('List folder contents', ('listFolderContents',)),
 ('Manage properties', ('setDescription', 'edit', 'setTitle')),
...                                                                    

__call__

Type:
str
Value:
'<Not Accessible>'                                                     

__delattr__

Type:
str
Value:
'<Not Accessible>'                                                     

__getattr__

Type:
str
Value:
'<Not Accessible>'                                                     

__implements__

Type:
tuple
Value:
(<Interface Products.CMFCore.interfaces.Dynamic.DynamicType at b76fd60\
c>,
 (<Interface webdav.WriteLockInterface.WriteLockInterface at b7958c4c>\
,))                                                                    

__setattr__

Type:
str
Value:
'<Not Accessible>'                                                     

allowedContentTypes__roles__

Type:
NoneType
Value:
None                                                                  

contentIds__roles__

Type:
NoneType
Value:
None                                                                  

contentItems__roles__

Type:
NoneType
Value:
None                                                                  

contentValues__roles__

Type:
NoneType
Value:
None                                                                  

decodeFolderFilter__roles__

Type:
NoneType
Value:
None                                                                  

description

Type:
str
Value:
''                                                                     

encodeFolderFilter__roles__

Type:
NoneType
Value:
None                                                                  

manage_options

Type:
tuple
Value:
({'action': 'manage_main',
  'help': ('OFSP', 'ObjectManager_Contents.stx'),
  'label': 'Contents'},
 {'action': '', 'help': ('OFSP', 'Folder_View.stx'), 'label': 'View'},
 {'action': 'manage_propertiesForm',
  'help': ('OFSP', 'Properties.stx'),
  'label': 'Properties'},
 {'action': 'manage_access',
...                                                                    

meta_type

Type:
str
Value:
'Portal Folder'                                                        

meta_types

Type:
tuple
Value:
()                                                                     

portal_type

Type:
str
Value:
'Folder'                                                               

Generated by Epydoc 2.1 on Fri Dec 23 14:45:43 2005 http://epydoc.sf.net
}}}