ToManyRelationship manages the ToMany side of a bi-directional
relation between to objects. It does not return values for any of the
object* calls defined on ObjectManager so that Zope can still work with
its containment assumptions. It provides object*All calles that return
its object in the same way that ObjectManager does.
Related references are maintained in a list.
Method Summary |
|
__init__ (self,
id)
ToManyRelationships use an array to store related objects |
|
__call__ (self)
when we are called return our related object in our aq context |
|
all_meta_types (self,
interfaces)
Return empty list not allowed to add objects to a ToManyRelation |
|
checkRelation (self,
repair)
Check to make sure that relationship bidirectionality is ok. |
|
exportXml (self,
ofile,
ignorerels)
Return an xml representation of a ToManyRelationship... |
|
hasobject (self,
obj)
check to see if we have this object |
|
manage_beforeDelete (self,
item,
container)
there are 4 possible states for _operation during beforeDelete -1 =
object being deleted remove relation 0 = copy, 1 = move, 2 = rename
ToMany unlinks from its remote relations if its being deleted. |
|
manage_pasteObjects (self,
cb_copy_data,
REQUEST)
ToManyRelationships link instead of pasting |
|
objectIds (self,
spec)
ToManyRelationship doesn't publish objectIds to prevent zope recursion
problems. |
|
objectIdsAll (self)
Return object ids as their absolute primaryId. |
|
objectItems (self,
spec)
ToManyRelationship doesn't publish objectItems to prevent zope
recursion problems. |
|
objectItemsAll (self)
Return object items where key is primaryId. |
|
objectValues (self,
spec)
ToManyRelationship doesn't publish objectValues to prevent zope
recursion problems. |
|
objectValuesAll (self)
return all related object values |
|
objectValuesGen (self)
Generator that returns all related objects. |
|
_add (self,
obj)
add an object to one side of this toMany relationship |
|
_delObject (self,
id)
Delete object by its absolute id (ie /zport/dmd/bla/bla) (this is sent
out in the object*All API) |
|
_getCopy (self,
container)
create copy and link remote objects if remote side is TO_MANY |
|
_getOb (self,
id,
default)
Return object based on its primaryId. |
|
_remoteRemove (self,
obj)
remove an object from the far side of this relationship if no object
is passed in remove all objects |
|
_remove (self,
obj)
remove object from our side of a relationship |
|
_setObject (self,
id,
object,
roles,
user,
set_owner)
Set and object onto a ToMany by calling addRelation |
Inherited from ToManyRelationshipBase :
countObjects ,
findObjectsById ,
manage_workspace ,
_delOb ,
_setOb
Inherited from RelCopyContainer :
manage_linkObjects ,
manage_renameObject ,
manage_unlinkObjects ,
_getRelName ,
_getSourceObjects ,
_verifyObjectLink ,
_verifyObjectPaste
Inherited from CopyContainer :
cb_dataItems ,
cb_dataValid ,
manage_clone ,
manage_CopyContainerAllItems ,
manage_CopyContainerFirstItem ,
manage_copyObjects ,
manage_cutObjects ,
manage_renameObjects ,
validClipData ,
_get_id
Inherited from RelationshipBase :
addRelation ,
cb_isCopyable ,
cb_isMoveable ,
getId ,
getPrimaryParent ,
getRelationshipManagerClass ,
remoteClass ,
remoteName ,
remoteType ,
remoteTypeName ,
removeRelation
Inherited from PrimaryPathManager :
getPrimaryId ,
getPrimaryPath ,
getPrimaryUrlPath ,
primaryAq
Inherited from ZItem :
__len__ ,
__repr__ ,
manage ,
manage_afterAdd ,
manage_afterClone ,
manage_editedDialog ,
manage_FTPlist ,
manage_FTPstat ,
raise_standardErrorMessage ,
this ,
title_and_id ,
title_or_id ,
tpURL ,
tpValues
Inherited from CopySource :
cb_userHasCopyOrMovePermission ,
_canCopy ,
_notifyOfCopyTo ,
_postCopy ,
_setId
Inherited from Tabs :
class_manage_path ,
filtered_manage_options ,
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 :
__delattr__ ,
__hash__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|