Package OFS :: Module ObjectManager :: Class ObjectManager
[show private | hide private]
[frames | no frames]

Type ObjectManager

     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

Known Subclasses:
Folder, PrimaryPathObjectManager, PrimaryPathObjectManager, SkinnableObjectManager

Generic object manager

This class provides core behavior for collections of heterogeneous objects.
Method Summary
  __class_init__(self)
  __getitem__(self, key)
  _checkId(self, id, allow_dup)
  all_meta_types(self, interfaces)
  filtered_meta_types(self, user)
  hasObject(self, id)
Indicate whether the folder has an item by ID.
  list_imports(self)
  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)
Inherited from CopyContainer: cb_dataItems, cb_dataValid, manage_clone, manage_CopyContainerAllItems, manage_CopyContainerFirstItem, manage_copyObjects, manage_cutObjects, manage_pasteObjects, manage_renameObject, manage_renameObjects, validClipData
Inherited from Navigation: manage_zmi_logout
Inherited from Tabs: class_manage_path, filtered_manage_options, manage_workspace, tabs_path_default, tabs_path_info
Inherited from Persistent: __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version
Inherited from Persistent: __delattr__, __getstate__, __reduce__, __setattr__, __setstate__
Inherited from Collection: dav__init, DELETE, HEAD, listDAVObjects, PUT
Inherited from Resource: COPY, dav__simpleifhandler, dav__validate, LOCK, manage_DAVget, MKCOL, MOVE, OPTIONS, PROPFIND, PROPPATCH, TRACE, UNLOCK
Inherited from LockableItem: wl_clearLocks, wl_delLock, wl_getLock, wl_hasLock, wl_isLocked, wl_lockItems, wl_lockmapping, wl_lockTokens, wl_lockValues, wl_setLock
Inherited from EtagSupport: http__etag, http__parseMatchList, http__processMatchHeaders, http__refreshEtag
Inherited from Traversable: absolute_url, absolute_url_path, getPhysicalPath, restrictedTraverse, unrestrictedTraverse, virtual_url_path
Inherited from Base: __getnewargs__
Inherited from object: __init__, __hash__, __reduce_ex__, __repr__, __str__

Class Variable Summary
tuple __ac_permissions__ = (('View management screens', ('mana...
Implements __implemented__ = <implementedBy OFS.ObjectManager.Objec...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
PermissionRole __roles__ = <PermissionRole object at 0xff20>
int isAnObjectManager = 1                                                                     
int isPrincipiaFolderish = 1                                                                     
ProductDispatcher manage_addProduct = <App.FactoryDispatcher.ProductDispat...
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 0xf6...
PermissionRole manage_FTPstat__roles__ = <PermissionRole object at 0xf6...
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 0x148...
PermissionRole manage_main__roles__ = <PermissionRole object at 0xf530>
tuple manage_options = ({'action': 'manage_main', 'help': ('OF...
str meta_type = 'Object Manager'
tuple meta_types = ()
PermissionRole objectIds__roles__ = <PermissionRole object at 0xff20>
PermissionRole objectItems__roles__ = <PermissionRole object at 0xff20>
PermissionRole objectValues__roles__ = <PermissionRole object at 0xff20...
Inherited from CopyContainer: __providedBy__, manage_clone__roles__, manage_CopyContainerAllItems__roles__, manage_CopyContainerFirstItem__roles__, manage_copyObjects__roles__, manage_cutObjects__roles__, manage_pasteObjects__roles__, manage_renameForm, manage_renameForm__roles__, manage_renameObject__roles__, manage_renameObjects__roles__
Inherited from Navigation: manage, manage__roles__, manage_copyright, manage_copyright__roles__, manage_form_title, manage_form_title__roles__, manage_menu, manage_menu__roles__, manage_page_footer, manage_page_footer__roles__, manage_page_header, manage_page_header__roles__, manage_page_style.css, manage_page_style.css__roles__, manage_top_frame, manage_top_frame__roles__, manage_zmi_logout__roles__, manage_zmi_prefs, manage_zmi_prefs__roles__, zope_quick_start, zope_quick_start__roles__
Inherited from Tabs: class_manage_path__roles__, filtered_manage_options__roles__, manage_tabs, manage_tabs__roles__, manage_workspace__roles__
Inherited from Collection: __dav_collection__
Inherited from Resource: __dav_resource__, __http_methods__, COPY__roles__, DELETE__roles__, HEAD__roles__, listDAVObjects__roles__, LOCK__roles__, manage_DAVget__roles__, MOVE__roles__, OPTIONS__roles__, PROPFIND__roles__, PROPPATCH__roles__, TRACE__roles__, UNLOCK__roles__
Inherited from LockableItem: wl_clearLocks__roles__, wl_delLock__roles__, wl_getLock__roles__, wl_isLocked__roles__, wl_isLockedByUser__roles__, wl_lockItems__roles__, wl_lockmapping__roles__, wl_lockTokens__roles__, wl_lockValues__roles__, wl_setLock__roles__
Inherited from EtagSupport: __implements__
Inherited from Traversable: absolute_url__roles__, absolute_url_path__roles__, getPhysicalPath__roles__, getPhysicalRoot, getPhysicalRoot__roles__, restrictedTraverse__roles__, unrestrictedTraverse__roles__, virtual_url_path__roles__

Method Details

hasObject(self, id)

Indicate whether the folder has an item by ID.

This doesn't try to be more intelligent than _getOb, and doesn't consult _objects (for performance reasons). The common use case is to check that an object does *not* exist.

manage_delObjects(self, ids=[], REQUEST=None)

Delete a subordinate object

The objects specified in 'ids' get deleted.

manage_exportObject(self, id='', download=None, toxml=None, RESPONSE=None, REQUEST=None)

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=None, set_owner=1)

Import an object from a file

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('View management screens', ('manage_main',)),
 ('Access contents information',
  ('objectIds', 'objectValues', 'objectItems', ''),
  ('Anonymous', 'Manager')),
 ('Delete objects', ('manage_delObjects',)),
 ('FTP access', ('manage_FTPstat', 'manage_FTPlist')),
 ('Import/Export objects',
  ('manage_importObject', 'manage_importExportForm', 'manage_exportObj\
...                                                                    

__implemented__

Type:
Implements
Value:
<implementedBy OFS.ObjectManager.ObjectManager>                        

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x15ad250>        

__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xff20>                                      

isAnObjectManager

Type:
int
Value:
1                                                                     

isPrincipiaFolderish

Type:
int
Value:
1                                                                     

manage_addProduct

Type:
ProductDispatcher
Value:
<App.FactoryDispatcher.ProductDispatcher object at 0x14a8030>          

manage_afterAdd__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_afterClone__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_beforeDelete__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_delObjects__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xff98>                                      

manage_exportObject__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf758>                                      

manage_FTPlist__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf650>                                      

manage_FTPstat__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf650>                                      

manage_hasId__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_importExportForm

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x14a8070>                        

manage_importExportForm__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf758>                                      

manage_importObject__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf758>                                      

manage_index_main

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x1494c10>                        

manage_index_main__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_main

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x148c0d0>                        

manage_main__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xf530>                                      

manage_options

Type:
tuple
Value:
({'action': 'manage_main',
  'help': ('OFSP', 'ObjectManager_Contents.stx'),
  'label': 'Contents'},)                                               

meta_type

Type:
str
Value:
'Object Manager'                                                       

meta_types

Type:
tuple
Value:
()                                                                     

objectIds__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xff20>                                      

objectItems__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xff20>                                      

objectValues__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xff20>                                      

Generated by Epydoc 2.1 on Thu Aug 16 09:55:10 2007 http://epydoc.sf.net