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

Class ToManyRelationshipBase

source code

                                     object --+            
                                              |            
                            ExtensionClass.Base --+        
                                                  |        
                      OFS.CopySupport.CopyContainer --+    
                                                      |    
                        RelCopySupport.RelCopyContainer --+
                                                          |
                                 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.RelationshipBase --+
                                                          |
                                                         ToManyRelationshipBase
Known Subclasses:
RelSchema.ToMany._relationClass, RelSchema.ToManyCont._relationClass

Abstract base class for all ToMany relationships.

Instance Methods [hide private]
 
countObjects(self)
Return the number of objects in this relationship
source code
 
findObjectsById(self, partid)
Return a list of objects by running find on their id
source code
 
_delObject(self, id, dp=1)
Emulate ObjectManager deletetion.
source code
 
_setOb(self, id, obj)
don't use attributes in relations
source code
 
_delOb(self, id)
don't use attributes in relations
source code
 
_getOb(self, id, default='__ZENMARKER__')
Return object by id if it exists on this relationship.
source code
 
manage_workspace(self, REQUEST)
if this has been called on us return our workspace if not redirect to the workspace of a related object
source code

Inherited from RelCopySupport.RelCopyContainer: manage_linkObjects, manage_renameObject, manage_unlinkObjects

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): _get_id

Inherited from RelationshipBase.RelationshipBase: __call__, addRelation, cb_isCopyable, cb_isMoveable, checkRelation, getId, getPrimaryParent, getRelationshipManagerClass, hasobject, remoteClass, remoteName, remoteType, remoteTypeName, removeRelation

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: cb_userHasCopyOrMovePermission

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

Inherited from App.Management.Tabs: class_manage_path, filtered_manage_options, 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]
  manage_options = ({'action': 'manage_main', 'help': ('OFSP', '...
  security = ClassSecurityInfo()
  manage_main = DTMLFile('dtml/ToManyRelationshipMain', globals())
  _operation = -1
  __ac_permissions__ = ()

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

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

Inherited from ZItem.ZItem (private): _manage_editedDialog

Inherited from AccessControl.Role.RoleManager: __ac_local_roles__, __ac_roles__, 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]

_setOb(self, id, obj)

source code 
don't use attributes in relations
Overrides: OFS.CopySupport.CopyContainer._setOb

_delOb(self, id)

source code 
don't use attributes in relations
Overrides: OFS.CopySupport.CopyContainer._delOb

_getOb(self, id, default='__ZENMARKER__')

source code 
Return object by id if it exists on this relationship. If it doesn't exist return default or if default is not set raise AttributeError
Overrides: OFS.CopySupport.CopyContainer._getOb

manage_workspace(self, REQUEST)

source code 
if this has been called on us return our workspace if not redirect to the workspace of a related object
Overrides: App.Management.Tabs.manage_workspace

Class Variable Details [hide private]

manage_options

Value:
({'action': 'manage_main',
  'help': ('OFSP', 'ObjectManager_Contents.stx'),
  'label': 'Contents'})