Package CMFCore :: Module Skinnable :: Class SkinnableObjectManager
[show private | hide private]
[frames | no frames]

Type SkinnableObjectManager

     object --+                
              |                
           Base --+            
                  |            
EtagSupport --+   |            
              |   |            
   LockableItem --+            
                  |            
           Resource --+        
                      |        
             Collection --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
          CopyContainer --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
             Navigation --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
         object --+   |   |    
                  |   |   |    
         Persistent --+   |    
                      |   |    
             Persistent --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
                   Tabs --+    
                          |    
            Traversable --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
               Acquirer --+    
                          |    
              ObjectManager --+
                              |
                             SkinnableObjectManager

Known Subclasses:
PortalObjectBase

Generic object manager

This class provides core behavior for collections of heterogeneous objects.
Method Summary
  __getattr__(self, name)
Looks for the name in an object with wrappers that only reach up to the root skins folder.
  __of__(self, parent)
Sneakily sets up the portal skin then returns the wrapper that Acquisition.Implicit.__of__() would return.
  changeSkin(self, skinname)
Change the current skin.
  clearCurrentSkin(self)
Clear the current skin.
  getSkin(self, name)
Returns the requested skin.
  getSkinNameFromRequest(self, REQUEST)
Returns the skin name from the Request.
  getSkinsFolderName(self)
  setupCurrentSkin(self, REQUEST)
Sets up skindata so that __getattr__ can find it.
  _checkId(self, id, allow_dup)
Override of ObjectManager._checkId().
    Inherited from ObjectManager
  __class_init__(self)
  __getitem__(self, key)
  addDTMLDocument(self, id, title, file, REQUEST, submit)
Add a DTML Document object with the contents of file.
  addDTMLMethod(self, id, title, file, REQUEST, submit)
Add a DTML Method object with the contents of file.
  all_meta_types(self, interfaces)
  filtered_meta_types(self, user)
  list_imports(self)
  manage_addDocument(self, id, title, file, REQUEST, submit)
Add a DTML Method object with the contents of file.
  manage_addDTMLDocument(self, id, title, file, REQUEST, submit)
Add a DTML Document object with the contents of file.
  manage_addDTMLMethod(self, id, title, file, REQUEST, submit)
Add a DTML Method object with the contents of file.
  manage_addFile(self, id, file, title, precondition, content_type, REQUEST)
Add a new File object.
  manage_addFolder(self, id, title, createPublic, createUserF, REQUEST)
Add a new Folder object with id *id*.
  manage_addImage(self, id, file, title, precondition, content_type, REQUEST)
Add a new Image object.
  manage_addOrderedFolder(self, id, title, createPublic, createUserF, REQUEST)
Add a new ordered Folder object with id *id*.
  manage_addSiteRoot(self, title, base, path, REQUEST, **ignored)
  manage_addUserFolder(self, dtself, REQUEST, **ignored)
  manage_afterAdd(self, item, container)
  manage_afterClone(self, item)
  manage_beforeDelete(self, item, container)
  manage_delObjects(self, ids, REQUEST)
Delete a subordinate object
  manage_exportObject(self, id, download, toxml, RESPONSE, REQUEST)
Exports an object to a file and returns that file.
  manage_FTPlist(self, REQUEST)
Directory listing for FTP.
  manage_FTPstat(self, REQUEST)
Psuedo stat, used by FTP for directory listings.
  manage_hasId(self, REQUEST)
check if the folder has an object with REQUEST['id']
  manage_importObject(self, file, REQUEST, set_owner)
Import an object from a file
  objectIds(self, spec)
  objectIds_d(self, t)
  objectItems(self, spec)
  objectItems_d(self, t)
  objectMap(self)
  objectMap_d(self, t)
  objectValues(self, spec)
  objectValues_d(self, t)
  superValues(self, t)
  tpValues(self)
  _delOb(self, id)
  _delObject(self, id, dp)
  _getOb(self, id, default)
  _importObjectFromFile(self, filepath, verify, set_owner)
  _setOb(self, id, object)
  _setObject(self, id, object, roles, user, set_owner)
  _subobject_permissions(self)
    Inherited from CopyContainer
  cb_dataItems(self)
  cb_dataValid(self)
  manage_clone(self, ob, id, REQUEST)
  manage_CopyContainerAllItems(self, REQUEST)
  manage_CopyContainerFirstItem(self, REQUEST)
  manage_copyObjects(self, ids, REQUEST, RESPONSE)
Put a reference to the objects named in ids in the clip board
  manage_cutObjects(self, ids, REQUEST)
Put a reference to the objects named in ids in the clip board
  manage_pasteObjects(self, cb_copy_data, REQUEST)
Paste previously copied objects into the current object.
  manage_renameObject(self, id, new_id, REQUEST)
Rename a particular sub-object
  manage_renameObjects(self, ids, new_ids, REQUEST)
Rename several sub-objects
  validClipData(self)
  _get_id(self, id)
  _verifyObjectPaste(self, object, validate_src)
    Inherited from Navigation
  manage_zmi_logout(self, REQUEST, RESPONSE)
Logout current user
    Inherited from Tabs
  _old_filtered_manage_options(self, REQUEST)
  class_manage_path(self)
  filtered_manage_options(self, REQUEST)
  manage_workspace(self, REQUEST)
Dispatch to first interface in manage_options
  tabs_path_default(self, REQUEST, unquote)
  tabs_path_info(self, script, path, quote)
    Inherited from Acquirer
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
    Inherited from Persistent
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  bobobase_modification_time(self)
  locked_in_version(self)
Was the object modified in any version?
  modified_in_version(self)
Was the object modified in this version?
    Inherited from Persistent
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getstate__(...)
Get the object serialization state
  __reduce__(...)
Reduce an object to contituent parts for serialization
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __setstate__(...)
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state.
  _p_activate()
_p_activate() -- Activate the object
  _p_deactivate()
_p_deactivate() -- Deactivate the object
  _p_delattr(name)
This method should be called by subclass __delattr__ implementations before doing anything else.
  _p_getattr(name)
The method unghostifies the object, if necessary.
  _p_invalidate()
_p_invalidate() -- Invalidate the object
  _p_setattr(name, value)
This method should be called by subclass __setattr__ implementations before doing anything else.
    Inherited from Collection
  dav__init(self, request, response)
  DELETE(self, REQUEST, RESPONSE)
Delete a collection resource.
  HEAD(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
  listDAVObjects(self)
  PUT(self, REQUEST, RESPONSE)
The PUT method has no inherent meaning for collection resources, though collections are not specifically forbidden to handle PUT requests.
    Inherited from Resource
  COPY(self, REQUEST, RESPONSE)
Create a duplicate of the source resource whose state and behavior match that of the source resource as closely as possible.
  dav__simpleifhandler(self, request, response, method, col, url, refresh)
  dav__validate(self, object, methodname, REQUEST)
  LOCK(self, REQUEST, RESPONSE)
Lock a resource
  manage_DAVget(self)
Gets the document source
  MKCOL(self, REQUEST, RESPONSE)
Create a new collection resource.
  MOVE(self, REQUEST, RESPONSE)
Move a resource to a new location.
  OPTIONS(self, REQUEST, RESPONSE)
Retrieve communication options.
  PROPFIND(self, REQUEST, RESPONSE)
Retrieve properties defined on the resource.
  PROPPATCH(self, REQUEST, RESPONSE)
Set and/or remove properties defined on the resource.
  TRACE(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response.
  UNLOCK(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
    Inherited from LockableItem
  wl_clearLocks(self)
  wl_delLock(self, locktoken)
  wl_getLock(self, locktoken)
  wl_hasLock(self, token, killinvalids)
  wl_isLocked(self)
  wl_lockItems(self, killinvalids)
  wl_lockmapping(self, killinvalids, create)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
  wl_lockTokens(self, killinvalids)
  wl_lockValues(self, killinvalids)
  wl_setLock(self, locktoken, lock)
    Inherited from EtagSupport
  http__etag(self, readonly)
  http__parseMatchList(self, REQUEST, header)
  http__processMatchHeaders(self, REQUEST)
  http__refreshEtag(self)
    Inherited from Traversable
  absolute_url(self, relative)
Return the absolute URL of the object.
  absolute_url_path(self)
Return the path portion of the absolute URL of the object.
  getPhysicalPath(self)
Get the physical path of the object.
  restrictedTraverse(self, path, default)
  unrestrictedTraverse(self, path, default, restricted)
Lookup an object by path.
  virtual_url_path(self)
Return a URL for the object, relative to the site root.
    Inherited from Base
  __getnewargs__(...)
Get arguments to be passed to __new__
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
tuple __ac_permissions__ = ()
NoneType changeSkin__roles__ = None                                                                  
NoneType clearCurrentSkin__roles__ = None                                                                  
tuple getSkin__roles__ = ()
NoneType getSkinNameFromRequest__roles__ = None                                                                  
tuple getSkinsFolderName__roles__ = ()
tuple meta_types = ()
NoneType setupCurrentSkin__roles__ = None                                                                  
    Inherited from ObjectManager
Implements __implemented__ = <implementedBy OFS.ObjectManager.Objec...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
PermissionRole __roles__ = <PermissionRole object at 0xb7457620>
PermissionRole addDTMLDocument__roles__ = <PermissionRole object at 0xb...
PermissionRole addDTMLMethod__roles__ = <PermissionRole object at 0xb60...
int isAnObjectManager = 1                                                                     
int isPrincipiaFolderish = 1                                                                     
PermissionRole manage_addDocument__roles__ = <PermissionRole object at ...
PermissionRole manage_addDTMLDocument__roles__ = <PermissionRole object...
PermissionRole manage_addDTMLMethod__roles__ = <PermissionRole object a...
PermissionRole manage_addFile__roles__ = <PermissionRole object at 0xb6...
PermissionRole manage_addFolder__roles__ = <PermissionRole object at 0x...
PermissionRole manage_addImage__roles__ = <PermissionRole object at 0xb...
PermissionRole manage_addOrderedFolder__roles__ = <PermissionRole objec...
ProductDispatcher manage_addProduct = <App.FactoryDispatcher.ProductDispat...
PermissionRole manage_addSiteRoot__roles__ = <PermissionRole object at ...
DTMLFile manage_addSiteRootForm = <App.special_dtml.DTMLFile obje...
PermissionRole manage_addSiteRootForm__roles__ = <PermissionRole object...
PermissionRole manage_addUserFolder__roles__ = <PermissionRole object a...
tuple manage_afterAdd__roles__ = ('Manager',)
tuple manage_afterClone__roles__ = ('Manager',)
tuple manage_beforeDelete__roles__ = ('Manager',)
PermissionRole manage_delObjects__roles__ = <PermissionRole object at 0...
PermissionRole manage_exportObject__roles__ = <PermissionRole object at...
PermissionRole manage_FTPlist__roles__ = <PermissionRole object at 0xb7...
PermissionRole manage_FTPstat__roles__ = <PermissionRole object at 0xb7...
tuple manage_hasId__roles__ = ('Manager',)
DTMLFile manage_importExportForm = <App.special_dtml.DTMLFile obj...
PermissionRole manage_importExportForm__roles__ = <PermissionRole objec...
PermissionRole manage_importObject__roles__ = <PermissionRole object at...
DTMLFile manage_index_main = <App.special_dtml.DTMLFile object at...
tuple manage_index_main__roles__ = ('Manager',)
DTMLFile manage_main = <App.special_dtml.DTMLFile object at 0xb65...
PermissionRole manage_main__roles__ = <PermissionRole object at 0xb7457...
tuple manage_options = ({'action': 'manage_main', 'help': ('OF...
str meta_type = 'Object Manager'
PermissionRole objectIds__roles__ = <PermissionRole object at 0xb745762...
PermissionRole objectItems__roles__ = <PermissionRole object at 0xb7457...
PermissionRole objectValues__roles__ = <PermissionRole object at 0xb745...
DTMLFile SiteRootAdd = <App.special_dtml.DTMLFile object at 0xb60...
PermissionRole SiteRootAdd__roles__ = <PermissionRole object at 0xb6bc5...
tuple _objects = ()
    Inherited from CopyContainer
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
NoneType manage_clone__roles__ = None                                                                  
tuple manage_CopyContainerAllItems__roles__ = ('Manager',)
tuple manage_CopyContainerFirstItem__roles__ = ('Manager',)
PermissionRole manage_copyObjects__roles__ = <PermissionRole object at ...
PermissionRole manage_cutObjects__roles__ = <PermissionRole object at 0...
PermissionRole manage_pasteObjects__roles__ = <PermissionRole object at...
DTMLFile manage_renameForm = <App.special_dtml.DTMLFile object at...
PermissionRole manage_renameForm__roles__ = <PermissionRole object at 0...
PermissionRole manage_renameObject__roles__ = <PermissionRole object at...
PermissionRole manage_renameObjects__roles__ = <PermissionRole object a...
    Inherited from Navigation
DTMLFile manage = <App.special_dtml.DTMLFile object at 0xb7500b8c...
PermissionRole manage__roles__ = <PermissionRole object at 0xb7558e18>
DTMLFile manage_copyright = <App.special_dtml.DTMLFile object at ...
NoneType manage_copyright__roles__ = None                                                                  
DTMLFile manage_form_title = <App.special_dtml.DTMLFile object at...
NoneType manage_form_title__roles__ = None                                                                  
DTMLFile manage_menu = <App.special_dtml.DTMLFile object at 0xb75...
PermissionRole manage_menu__roles__ = <PermissionRole object at 0xb7558...
DTMLFile manage_page_footer = <App.special_dtml.DTMLFile object a...
PermissionRole manage_page_footer__roles__ = <PermissionRole object at ...
DTMLFile manage_page_header = <App.special_dtml.DTMLFile object a...
PermissionRole manage_page_header__roles__ = <PermissionRole object at ...
DTMLFile manage_page_style.css = <App.special_dtml.DTMLFile objec...
NoneType manage_page_style.css__roles__ = None                                                                  
DTMLFile manage_top_frame = <App.special_dtml.DTMLFile object at ...
PermissionRole manage_top_frame__roles__ = <PermissionRole object at 0x...
NoneType manage_zmi_logout__roles__ = None                                                                  
DTMLFile manage_zmi_prefs = <App.special_dtml.DTMLFile object at ...
NoneType manage_zmi_prefs__roles__ = None                                                                  
DTMLFile zope_quick_start = <App.special_dtml.DTMLFile object at ...
NoneType zope_quick_start__roles__ = None                                                                  
    Inherited from Tabs
NoneType class_manage_path__roles__ = None                                                                  
NoneType filtered_manage_options__roles__ = None                                                                  
DTMLFile manage_tabs = <App.special_dtml.DTMLFile object at 0xb74...
tuple manage_tabs__roles__ = ('Anonymous',)
tuple manage_workspace__roles__ = ('Authenticated',)
    Inherited from Persistent
getset_descriptor _p_changed = <attribute '_p_changed' of 'persistent.Pers...
getset_descriptor _p_jar = <attribute '_p_jar' of 'persistent.Persistent' ...
getset_descriptor _p_mtime = <attribute '_p_mtime' of 'persistent.Persiste...
getset_descriptor _p_oid = <attribute '_p_oid' of 'persistent.Persistent' ...
getset_descriptor _p_serial = <attribute '_p_serial' of 'persistent.Persis...
getset_descriptor _p_state = <attribute '_p_state' of 'persistent.Persiste...
    Inherited from Collection
int __dav_collection__ = 1                                                                     
    Inherited from Resource
int __dav_resource__ = 1                                                                     
tuple __http_methods__ = ('GET', 'HEAD', 'POST', 'PUT', 'DELET...
tuple COPY__roles__ = ('Anonymous',)
PermissionRole DELETE__roles__ = <PermissionRole object at 0xb7457188>
PermissionRole HEAD__roles__ = <PermissionRole object at 0xb7457140>
PermissionRole listDAVObjects__roles__ = <PermissionRole object at 0xb7...
PermissionRole LOCK__roles__ = <PermissionRole object at 0xb74571a0>
PermissionRole manage_DAVget__roles__ = <PermissionRole object at 0xb74...
tuple MOVE__roles__ = ('Anonymous',)
NoneType OPTIONS__roles__ = None                                                                  
PermissionRole PROPFIND__roles__ = <PermissionRole object at 0xb7457158...
PermissionRole PROPPATCH__roles__ = <PermissionRole object at 0xb745717...
NoneType TRACE__roles__ = None                                                                  
PermissionRole UNLOCK__roles__ = <PermissionRole object at 0xb74571b8>
    Inherited from LockableItem
PermissionRole wl_clearLocks__roles__ = <PermissionRole object at 0xb75...
PermissionRole wl_delLock__roles__ = <PermissionRole object at 0xb7558d...
NoneType wl_getLock__roles__ = None                                                                  
PermissionRole wl_grantLockToUser__roles__ = <PermissionRole object at ...
NoneType wl_isLocked__roles__ = None                                                                  
NoneType wl_isLockedByUser__roles__ = None                                                                  
NoneType wl_lockItems__roles__ = None                                                                  
tuple wl_lockmapping__roles__ = ()
NoneType wl_lockTokens__roles__ = None                                                                  
NoneType wl_lockValues__roles__ = None                                                                  
PermissionRole wl_setLock__roles__ = <PermissionRole object at 0xb7558e...
    Inherited from EtagSupport
tuple __implements__ = (<Interface webdav.EtagSupport.EtagBase...
    Inherited from Traversable
NoneType absolute_url__roles__ = None                                                                  
NoneType absolute_url_path__roles__ = None                                                                  
NoneType getPhysicalPath__roles__ = None                                                                  
str getPhysicalRoot = '<Special Object Used to Force Acquisi...
tuple getPhysicalRoot__roles__ = ()
NoneType restrictedTraverse__roles__ = None                                                                  
tuple unrestrictedTraverse__roles__ = ()
NoneType virtual_url_path__roles__ = None                                                                  

Method Details

__getattr__(self, name)
(Qualification operator)

Looks for the name in an object with wrappers that only reach up to the root skins folder.

This should be fast, flexible, and predictable.

__of__(self, parent)

Sneakily sets up the portal skin then returns the wrapper that Acquisition.Implicit.__of__() would return.
Overrides:
Acquisition._Acquisition.Acquirer.__of__

changeSkin(self, skinname)

Change the current skin.

Can be called manually, allowing the user to change skins in the middle of a request.

clearCurrentSkin(self)

Clear the current skin.

getSkin(self, name=None)

Returns the requested skin.

getSkinNameFromRequest(self, REQUEST=None)

Returns the skin name from the Request.

setupCurrentSkin(self, REQUEST=None)

Sets up skindata so that __getattr__ can find it.

Can NOT be called manually to change skins in the middle of a request! Use changeSkin for that.

_checkId(self, id, allow_dup=0)

Override of ObjectManager._checkId().

Allows the user to create objects with IDs that match the ID of a skin object.
Overrides:
OFS.ObjectManager.ObjectManager.checkValidId

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
()                                                                     

changeSkin__roles__

Type:
NoneType
Value:
None                                                                  

clearCurrentSkin__roles__

Type:
NoneType
Value:
None                                                                  

getSkin__roles__

Type:
tuple
Value:
()                                                                     

getSkinNameFromRequest__roles__

Type:
NoneType
Value:
None                                                                  

getSkinsFolderName__roles__

Type:
tuple
Value:
()                                                                     

meta_types

Type:
tuple
Value:
()                                                                     

setupCurrentSkin__roles__

Type:
NoneType
Value:
None                                                      &nbs