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

# Class RelCopyContainer

source code

          ExtensionClass.Base --+
                                |
    OFS.CopySupport.CopyContainer --+
                                    |
                                   RelCopyContainer

Known Subclasses:
  - ToManyRelationshipBase.ToManyRelationshipBase
  - , PrimaryPathObjectManager.PrimaryPathObjectManager

Instance Methods | [hide private]
_checkId(self, new_id) This method gets called from the new manage_renameObject which seems to be a bug in the Zope code. | 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`: `cb_dataItems`, `cb_dataValid`, `manage_CopyContainerAllItems`, `manage_CopyContainerFirstItem`, `manage_clone`, `manage_copyObjects`, `manage_cutObjects`, `manage_pasteObjects`, `manage_renameObject`, `manage_renameObjects`, `validClipData` Inherited from `OFS.CopySupport.CopyContainer` (private): `_delOb`, `_getOb`, `_get_id`, `_setOb`

Class Variables | [hide private]
Inherited from `OFS.CopySupport.CopyContainer`: `manage_renameForm`, `security`

Method Details | [hide private]

### _checkId(self, new_id) | source code
This method gets called from the new manage_renameObject which seems to be a bug in the Zope code. We add it until the problem is fixed.

### _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.