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

Type RelationshipBase

    object --+            
             |            
          Base --+        
                 |        
   RoleManager --+        
                 |        
       RoleManager --+    
                     |    
    object --+       |    
             |       |    
          Base --+   |    
                 |   |    
object --+       |   |    
         |       |   |    
      Base --+   |   |    
             |   |   |    
    CopySource --+   |    
                 |   |    
object --+       |   |    
         |       |   |    
      Base --+   |   |    
             |   |   |    
         Owned --+   |    
                 |   |    
object --+       |   |    
         |       |   |    
      Base --+   |   |    
             |   |   |    
          Tabs --+   |    
                 |   |    
   Traversable --+   |    
                 |   |    
             ZItem --+    
                     |    
    object --+       |    
             |       |    
          Base --+   |    
                 |   |    
          Acquirer --+    
                     |    
    PrimaryPathManager --+
                         |
                        RelationshipBase

Known Subclasses:
ToManyRelationshipBase, ToOneRelationship

Abstract base class for all relationship classes.
Method Summary
  __call__(self)
Return the contents of this relation.
  addRelation(self, obj)
Form a bi-directional relation between self and obj.
  cb_isCopyable(self)
Don't let relationships move off their managers
  cb_isMoveable(self)
Don't let relationships move off their managers
  checkRelation(self, repair)
Check to make sure that relationship bidirectionality is ok.
  getId(self)
Return the id of the object as a string.
  getPrimaryParent(self)
Return our parent object by our primary path
  getRelationshipManagerClass(self)
Return the local class of this relationship.
  hasobject(self, obj)
Does this relationship relate to obj.
  remoteClass(self)
Return the class at the remote end of our relationship.
  remoteName(self)
Return the name at the remote end of our relationship.
  remoteType(self)
Return the type of the remote end of our relationship.
  remoteTypeName(self)
Return the type of the remote end of our relationship.
  removeRelation(self, obj)
remove an object from a relationship
  _add(self, obj)
Add object to local side of relationship.
  _remoteRemove(self, obj)
Remove obj form the remote side of this relationship.
  _remove(self, obj)
Remove object from local side of relationship.
Inherited from PrimaryPathManager: getPrimaryId, getPrimaryPath, getPrimaryUrlPath, primaryAq
Inherited from ZItem: __len__, __repr__, manage, manage_afterAdd, manage_afterClone, manage_beforeDelete, manage_editedDialog, manage_FTPlist, manage_FTPstat, objectIds, objectItems, objectValues, raise_standardErrorMessage, this, title_and_id, title_or_id, tpURL, tpValues
Inherited from CopySource: cb_userHasCopyOrMovePermission, _canCopy, _getCopy, _notifyOfCopyTo, _postCopy, _setId
Inherited from Tabs: class_manage_path, filtered_manage_options, manage_workspace, tabs_path_default, tabs_path_info
Inherited from Traversable: absolute_url, absolute_url_path, getPhysicalPath, restrictedTraverse, unrestrictedTraverse, virtual_url_path
Inherited from Owned: changeOwnership, getOwner, getOwnerTuple, getWrappedOwner, manage_fixupOwnershipAfterAdd, owner_info, userCanTakeOwnership, _deleteOwnershipAfterAdd, manage_changeOwnershipType, manage_takeOwnership
Inherited from Acquirer: __new__, __of__
Inherited from 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_defined_roles, manage_editRoles, manage_role, permission_settings, permissionsOfRole, possible_permissions, rolesOfPermission, userdefined_roles, users_with_local_role, valid_roles, validate_roles, validRoles, _addRole, _delRoles, _has_user_defined_role, _setRoles, manage_acquiredPermissions, manage_addLocalRoles, manage_changePermissions, manage_delLocalRoles, manage_permission, manage_setLocalRoles
Inherited from RoleManager: manage_getPermissionMapping, _isBeingAccessedAsZClassDefinedInstanceMethod, _isBeingUsedAsAMethod, manage_setPermissionMapping
Inherited from Base: __getattribute__, __getnewargs__, __getstate__, __reduce__, __setstate__
Inherited from object: __init__, __delattr__, __hash__, __reduce_ex__, __setattr__, __str__

Class Variable Summary
int _operation = -1                                                                    
Inherited from ZItem: __allow_access_to_unprotected_subobjects__, __name__, __propsets__, getId__roles__, icon, id, isPrincipiaFolderish, isTopLevelPrincipiaApplicationObject, manage_options, meta_type, REQUEST, title, _manage_editedDialog
Inherited from CopySource: __ac_permissions__, __implemented__, __providedBy__, __provides__
Inherited from Tabs: class_manage_path__roles__, filtered_manage_options__roles__, manage_tabs, manage_tabs__roles__, manage_workspace__roles__
Inherited from Traversable: absolute_url__roles__, absolute_url_path__roles__, getPhysicalPath__roles__, getPhysicalRoot, getPhysicalRoot__roles__, restrictedTraverse__roles__, unrestrictedTraverse__roles__, virtual_url_path__roles__
Inherited from Owned: changeOwnership__roles__, getOwner__roles__, getOwnerTuple__roles__, getWrappedOwner__roles__, manage_changeOwnershipType__roles__, manage_fixupOwnershipAfterAdd__roles__, manage_owner, manage_owner__roles__, manage_takeOwnership__roles__, owner_info__roles__
Inherited from RoleManager: __ac_local_roles__, __ac_roles__, ac_inherited_permissions__roles__, access_debug_info__roles__, aclAChecked, aclEChecked, aclPChecked, acquiredRolesAreUsedBy__roles__, manage_access__roles__, manage_acquiredForm, manage_acquiredForm__roles__, manage_acquiredPermissions__roles__, manage_addLocalRoles__roles__, manage_changePermissions__roles__, manage_defined_roles__roles__, manage_delLocalRoles__roles__, manage_editLocalRoles, manage_editLocalRoles__roles__, manage_editRoles__roles__, manage_listLocalRoles, manage_listLocalRoles__roles__, manage_permission__roles__, manage_permissionForm, manage_permissionForm__roles__, manage_role__roles__, manage_roleForm, manage_roleForm__roles__, manage_setLocalRoles__roles__, permission_settings__roles__, permissionMappingPossibleValues, permissionsOfRole__roles__, rolesOfPermission__roles__, selectedRoles, smallRolesWidget, userdefined_roles__roles__, _method_manage_access, _normal_manage_access
Inherited from RoleManager: manage_getPermissionMapping__roles__, manage_setPermissionMapping__roles__

Method Details

__call__(self)
(Call operator)

Return the contents of this relation.

addRelation(self, obj)

Form a bi-directional relation between self and obj.

cb_isCopyable(self)

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

cb_isMoveable(self)

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

checkRelation(self, repair=False)

Check to make sure that relationship bidirectionality is ok.

getId(self)

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:
ZenRelations.ZItem.ZItem.getId (inherited documentation)

getPrimaryParent(self)

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

getRelationshipManagerClass(self)

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

hasobject(self, obj)

Does this relationship relate to obj.

remoteClass(self)

Return the class at the remote end of our relationship.

remoteName(self)

Return the name at the remote end of our relationship.

remoteType(self)

Return the type of the remote end of our relationship.

remoteTypeName(self)

Return the type of the remote end of our relationship.

removeRelation(self, obj=None)

remove an object from a relationship

_add(self, obj)

Add object to local side of relationship.

_remoteRemove(self, obj=None)

Remove obj form the remote side of this relationship.

_remove(self, obj=None)

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

Class Variable Details

_operation

Type:
int
Value:
-1                                                                    

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