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

Class RelationshipBase

source code

                                 object --+            
                                          |            
                        ExtensionClass.Base --+        
                                              |        
                             object --+       |        
                                      |       |        
                    ExtensionClass.Base --+   |        
                                          |   |        
                 OFS.CopySupport.CopySource --+        
                                              |        
                             object --+       |        
                                      |       |        
                    ExtensionClass.Base --+   |        
                                          |   |        
                        App.Management.Tabs --+        
                                              |        
                OFS.Traversable.Traversable --+        
                                              |        
                             object --+       |        
                                      |       |        
                    ExtensionClass.Base --+   |        
                                          |   |        
                  AccessControl.Owned.Owned --+        
                                              |        
                                    ZItem.ZItem --+    
                                                  |    
                                 object --+       |    
                                          |       |    
                        ExtensionClass.Base --+   |    
                                              |   |    
                 ZenEvents.EventDetail.Implicit --+    
                                                  |    
                                 object --+       |    
                                          |       |    
                        ExtensionClass.Base --+   |    
                                              |   |    
AccessControl.PermissionMapping.RoleManager --+   |    
                                              |   |    
                 AccessControl.Role.RoleManager --+    
                                                  |    
        PrimaryPathObjectManager.PrimaryPathManager --+
                                                      |
                                                     RelationshipBase
Known Subclasses:
ToManyRelationshipBase.ToManyRelationshipBase, RelSchema.ToOne._relationClass

Abstract base class for all relationship classes.

Instance Methods [hide private]
 
__call__(self)
Return the contents of this relation.
source code
 
getId(self)
Return the id of the object as a string.
source code
 
hasobject(self, obj)
Does this relationship relate to obj.
source code
 
_add(self, obj)
Add object to local side of relationship.
source code
 
_remove(self, obj=None)
Remove object from local side of relationship.
source code
 
_remoteRemove(self, obj=None)
Remove obj form the remote side of this relationship.
source code
 
addRelation(self, obj)
Form a bi-directional relation between self and obj.
source code
 
removeRelation(self, obj=None)
remove an object from a relationship
source code
 
remoteType(self)
Return the type of the remote end of our relationship.
source code
 
remoteTypeName(self)
Return the type of the remote end of our relationship.
source code
 
remoteClass(self)
Return the class at the remote end of our relationship.
source code
 
remoteName(self)
Return the name at the remote end of our relationship.
source code
 
getPrimaryParent(self)
Return our parent object by our primary path
source code
 
getRelationshipManagerClass(self)
Return the local class of this relationship.
source code
 
cb_isCopyable(self)
Don't let relationships move off their managers
source code
 
cb_isMoveable(self)
Don't let relationships move off their managers
source code
 
checkRelation(self, repair=False)
Check to make sure that relationship bidirectionality is ok.
source code

Inherited from PrimaryPathObjectManager.PrimaryPathManager: getPrimaryId, getPrimaryPath, getPrimaryUrlPath, primaryAq

Inherited from ZItem.ZItem: __len__, __name__, __repr__, manage, manage_FTPlist, manage_FTPstat, manage_afterAdd, manage_afterClone, manage_beforeDelete, manage_editedDialog, objectIds, objectItems, objectValues, raise_standardErrorMessage, this, title_and_id, title_or_id, tpURL, tpValues

Inherited from ZenEvents.EventDetail.Implicit: __new__, __of__

Inherited from AccessControl.Role.RoleManager: ac_inherited_permissions, access_debug_info, acquiredRolesAreUsedBy, get_local_roles, get_local_roles_for_userid, get_valid_userids, has_local_roles, manage_access, manage_acquiredPermissions, manage_addLocalRoles, manage_changePermissions, manage_defined_roles, manage_delLocalRoles, manage_editRoles, manage_permission, manage_role, manage_setLocalRoles, permission_settings, permissionsOfRole, possible_permissions, rolesOfPermission, userdefined_roles, users_with_local_role, validRoles, valid_roles, validate_roles

Inherited from AccessControl.Role.RoleManager (private): _addRole, _delRoles, _has_user_defined_role, _setRoles

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

Inherited from OFS.CopySupport.CopySource: __providedBy__, cb_userHasCopyOrMovePermission

Inherited from OFS.CopySupport.CopySource (private): _canCopy, _getCopy, _notifyOfCopyTo, _postCopy, _setId

Inherited from App.Management.Tabs: class_manage_path, filtered_manage_options, manage_workspace, tabs_path_default, tabs_path_info

Inherited from OFS.Traversable.Traversable: absolute_url, absolute_url_path, getPhysicalPath, restrictedTraverse, unrestrictedTraverse, virtual_url_path

Inherited from AccessControl.Owned.Owned: changeOwnership, getOwner, getOwnerTuple, getWrappedOwner, manage_changeOwnershipType, manage_fixupOwnershipAfterAdd, manage_takeOwnership, owner_info, userCanTakeOwnership

Inherited from AccessControl.Owned.Owned (private): _deleteOwnershipAfterAdd

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

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

Inherited from AccessControl.PermissionMapping.RoleManager: manage_getPermissionMapping, manage_setPermissionMapping

Inherited from AccessControl.PermissionMapping.RoleManager (private): _isBeingAccessedAsZClassDefinedInstanceMethod, _isBeingUsedAsAMethod

Class Variables [hide private]
  _operation = -1

Inherited from ZItem.ZItem: REQUEST, __allow_access_to_unprotected_subobjects__, __propsets__, icon, id, isPrincipiaFolderish, isTopLevelPrincipiaApplicationObject, manage_options, meta_type, title

Inherited from ZItem.ZItem (private): _manage_editedDialog

Inherited from AccessControl.Role.RoleManager: __ac_local_roles__, __ac_permissions__, __ac_roles__, __implemented__, __provides__, aclAChecked, aclEChecked, aclPChecked, manage_acquiredForm, manage_editLocalRoles, manage_listLocalRoles, manage_permissionForm, manage_roleForm, permissionMappingPossibleValues, selectedRoles, smallRolesWidget

Inherited from AccessControl.Role.RoleManager (private): _method_manage_access, _normal_manage_access

Inherited from App.Management.Tabs: manage_tabs

Inherited from OFS.Traversable.Traversable: getPhysicalRoot

Inherited from AccessControl.Owned.Owned: manage_owner

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getId(self)

source code 

Return the id of the object as a string.

This method should be used in preference to accessing an id attribute of an object directly. The getId method is public.
Overrides: ZItem.ZItem.getId
(inherited documentation)

_remove(self, obj=None)

source code 
Remove object from local side of relationship. If obj=None remove all object in the relationship

getPrimaryParent(self)

source code 
Return our parent object by our primary path
Overrides: PrimaryPathObjectManager.PrimaryPathManager.getPrimaryParent

getRelationshipManagerClass(self)

source code 
Return the local class of this relationship. For all relationshps this is the class of our __primary_parent___.

cb_isCopyable(self)

source code 
Don't let relationships move off their managers
Overrides: OFS.CopySupport.CopySource.cb_isCopyable

cb_isMoveable(self)

source code 
Don't let relationships move off their managers
Overrides: OFS.CopySupport.CopySource.cb_isMoveable