Package Products :: Package ZenRelations :: Module RelCopySupport :: Class RelCopyContainer
[show private | hide private]
[frames | no frames]

Type RelCopyContainer

object --+        
         |        
      Base --+    
             |    
 CopyContainer --+
                 |
                RelCopyContainer

Known Subclasses:
PrimaryPathObjectManager

Interface for containerish objects which allow cut/copy/paste
Method Summary
  manage_linkObjects(self, ids, cb_copy_data, REQUEST)
link objects to relationship
  manage_renameObject(self, id, new_id, REQUEST)
Rename a particular sub-object
  manage_unlinkObjects(self, ids, cb_copy_data, REQUEST)
unlink objects from relationship
  _getRelName(self, ids)
Return our relationship name from the UI.
  _getSourceObjects(self, cb_copy_data, REQUEST)
get the source objects to link
  _verifyObjectLink(self)
When linking check that the user has "Copy or Move" permission on the relation.
  _verifyObjectPaste(self, object, validate_src)
check to see if this object is allowed to be pasted into this path
Inherited from CopyContainer: cb_dataItems, cb_dataValid, manage_clone, manage_CopyContainerAllItems, manage_CopyContainerFirstItem, manage_copyObjects, manage_cutObjects, manage_pasteObjects, manage_renameObjects, validClipData, _delOb, _get_id, _getOb, _setOb
Inherited from Base: __getattribute__, __getnewargs__, __getstate__, __new__, __reduce__, __setstate__
Inherited from object: __init__, __delattr__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
Inherited from CopyContainer: __ac_permissions__, __implemented__, __providedBy__, __provides__, 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__

Method Details

manage_linkObjects(self, ids=None, cb_copy_data=None, REQUEST=None)

link objects to relationship

manage_renameObject(self, id, new_id, REQUEST=None)

Rename a particular sub-object
Overrides:
OFS.CopySupport.CopyContainer.manage_renameObject

manage_unlinkObjects(self, ids=None, cb_copy_data=None, REQUEST=None)

unlink objects from relationship

_getRelName(self, ids)

Return our relationship name from the UI. If there is more than one id defined raise because only one target relationship can be defined. If no ids are defined check to see that we are a ToManyRelationship and return self.id.

_getSourceObjects(self, cb_copy_data, REQUEST)

get the source objects to link

_verifyObjectLink(self)

When linking check that the user has "Copy or Move" permission on the relation. Can't use _verifyObjectPaste because there is an empty all_meta_types on ToManyRelations which causes it to falsely fail.

_verifyObjectPaste(self, object, validate_src=1)

check to see if this object is allowed to be pasted into this path
Overrides:
OFS.CopySupport.CopyContainer._verifyObjectPaste

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