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

Class RelCopyContainer

source code

               object --+        
                        |        
      ExtensionClass.Base --+    
                            |    
OFS.CopySupport.CopyContainer --+
                                |
                               RelCopyContainer
Known Subclasses:
ToManyRelationshipBase.ToManyRelationshipBase, PrimaryPathObjectManager.PrimaryPathObjectManager

Interface for containerish objects which allow cut/copy/paste

Instance Methods [hide private]
 
manage_renameObject(self, id, new_id, REQUEST=None)
Rename a particular sub-object
source code
 
manage_linkObjects(self, ids=None, cb_copy_data=None, REQUEST=None)
link objects to relationship
source code
 
manage_unlinkObjects(self, ids=None, cb_copy_data=None, REQUEST=None)
unlink objects from relationship
source code
 
_verifyObjectPaste(self, object, validate_src=1)
check to see if this object is allowed to be pasted into this path
source code
 
_getRelName(self, ids)
Return our relationship name from the UI.
source code
 
_verifyObjectLink(self)
When linking check that the user has "Copy or Move" permission on the relation.
source code
 
_getSourceObjects(self, cb_copy_data, REQUEST)
get the source objects to link
source code

Inherited from OFS.CopySupport.CopyContainer: __providedBy__, cb_dataItems, cb_dataValid, manage_CopyContainerAllItems, manage_CopyContainerFirstItem, manage_clone, manage_copyObjects, manage_cutObjects, manage_pasteObjects, manage_renameObjects, validClipData

Inherited from OFS.CopySupport.CopyContainer (private): _delOb, _getOb, _get_id, _setOb

Inherited from ExtensionClass.Base: __getattribute__, __getnewargs__, __getstate__, __new__, __reduce__, __setstate__

Inherited from object: __delattr__, __hash__, __init__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from OFS.CopySupport.CopyContainer: __ac_permissions__, __implemented__, __provides__, manage_renameForm

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

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

_verifyObjectPaste(self, object, validate_src=1)

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

_getRelName(self, ids)

source code 
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.

_verifyObjectLink(self)

source code 
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.