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

Type ToManyContRelationship

    object --+                    
             |                    
          Base --+                
                 |                
   RoleManager --+                
                 |                
       RoleManager --+            
                     |            
    object --+       |            
             |       |            
          Base --+   |            
                 |   |            
object --+       |   |            
         |       |   |            
      Base --+   |   |            
             |   |   |            
    CopySource --+   |            
                 |   |            
object --+       |   |            
         |       |   |            
      Base --+   |   |            
             |   |   |            
         Owned --+   |            
                 |   |            
object --+       |   |            
         |       |   |            
      Base --+   |   |            
             |   |   |            
          Tabs --+   |            
                 |   |            
   Traversable --+   |            
                 |   |            
             ZItem --+            
                     |            
    object --+       |            
             |       |            
          Base --+   |            
                 |   |            
          Acquirer --+            
                     |            
    PrimaryPathManager --+        
                         |        
          RelationshipBase --+    
                             |    
        object --+           |    
                 |           |    
              Base --+       |    
                     |       |    
         CopyContainer --+   |    
                         |   |    
          RelCopyContainer --+    
                             |    
        ToManyRelationshipBase --+
                                 |
                                ToManyContRelationship


ToManyContRelationship is the ToMany side of a realtionship that contains its related objects (like the normal Zope ObjectManager)
Method Summary
  __init__(self, id)
set our instance values
  __call__(self)
when we are called return our related object in our aq context
  __getattr__(self, name)
look in the two object stores for related objects
  __hasattr__(self, name)
check to see if we have an object by an id this will fail if passed a short id and object is stored with fullid (ie: it is related not contained) use hasobject to get around this issue
  addRelation(self, obj)
Override base to run manage_afterAdd like ObjectManager
  exportXml(self, ofile, ignorerels)
Return an xml representation of a ToManyContRelationship <tomanycont id='interfaces'> <object id='hme0' module='Products.Confmon.IpInterface' class='IpInterface'> <property></property> etc....
  hasobject(self, obj)
check to see if we have this object
  manage_afterAdd(self, item, container)
Copied code from ObjectManager
  manage_afterClone(self, item)
Copied code from ObjectManager
  manage_beforeDelete(self, item, container)
Copied code from ObjectManager
  objectIds(self, spec)
only return contained objects
  objectIdsAll(self, spec)
only return contained objects
  objectItems(self, spec)
over ride to only return owned objects for many to many rel
  objectItemsAll(self, spec)
over ride to only return owned objects for many to many rel
  objectValues(self, spec)
over ride to only return owned objects for many to many rel
  objectValuesAll(self, spec)
over ride to only return owned objects for many to many rel
  objectValuesGen(self)
Generator that returns all related objects.
  _add(self, obj)
add an object to one side of a ToManyContRelationship.
  _getCopy(self, container)
make new relation add copies of contained objs and refs if the relation is a many to many
  _getOb(self, id, default)
look up in our local store and wrap in our aq_chain
  _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)
ObjectManager interface to add contained object.
Inherited from ToManyRelationshipBase: countObjects, findObjectsById, manage_workspace, _delOb, _delObject, _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_pasteObjects, manage_renameObjects, validClipData, _get_id
Inherited from RelationshipBase: cb_isCopyable, cb_isMoveable, checkRelation, getId, getPrimaryParent, getRelationshipManagerClass, remoteClass, remoteName, remoteType, remoteTypeName, removeRelation
Inherited from PrimaryPathManager: getPrimaryId, getPrimaryPath, getPrimaryUrlPath, primaryAq
Inherited from ZItem: __len__, __repr__, manage, 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__

Class Variable Summary
tuple __ac_permissions__ = (('View', ('objectIds', 'objectValu...
tuple manage_afterAdd__roles__ = ('Manager',)
tuple manage_afterClone__roles__ = ('Manager',)
tuple manage_beforeDelete__roles__ = ('Manager',)
str meta_type = 'ToManyContRelationship'
PermissionRole objectIds__roles__ = <PermissionRole object at 0x10bfd88...
PermissionRole objectValues__roles__ = <PermissionRole object at 0x10bf...
PermissionRole objectValuesAll__roles__ = <PermissionRole object at 0x1...
Inherited from ToManyRelationshipBase: manage_main, manage_main__roles__, manage_options, manage_workspace__roles__, _operation
Inherited from CopyContainer: __implemented__, __providedBy__, __provides__, manage_clone__roles__, manage_CopyContainerAllItems__roles__, manage_CopyContainerFirstItem__roles__, manage_copyObjects__roles__, manage_cutObjects__roles__, manage_pasteObjects__roles__, manage_renameForm, manage_renameForm__roles__, manage_renameObject__roles__, manage_renameObjects__roles__
Inherited from ZItem: __allow_access_to_unprotected_subobjects__, __name__, __propsets__, getId__roles__, icon, id, isPrincipiaFolderish, isTopLevelPrincipiaApplicationObject, REQUEST, title, _manage_editedDialog
Inherited from Tabs: class_manage_path__roles__, filtered_manage_options__roles__, manage_tabs, manage_tabs__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

__init__(self, id)
(Constructor)

set our instance values
Overrides:
__builtin__.object.__init__

__call__(self)
(Call operator)

when we are called return our related object in our aq context
Overrides:
ZenRelations.RelationshipBase.RelationshipBase.__call__

__getattr__(self, name)
(Qualification operator)

look in the two object stores for related objects

__hasattr__(self, name)

check to see if we have an object by an id this will fail if passed a short id and object is stored with fullid (ie: it is related not contained) use hasobject to get around this issue

addRelation(self, obj)

Override base to run manage_afterAdd like ObjectManager
Overrides:
ZenRelations.RelationshipBase.RelationshipBase.addRelation

exportXml(self, ofile, ignorerels=[])

Return an xml representation of a ToManyContRelationship
<tomanycont id='interfaces'>
    <object id='hme0' 
        module='Products.Confmon.IpInterface' class='IpInterface'>
        <property></property> etc....
    </object>
</tomanycont>

hasobject(self, obj)

check to see if we have this object
Overrides:
ZenRelations.RelationshipBase.RelationshipBase.hasobject

manage_afterAdd(self, item, container)

Copied code from ObjectManager
Overrides:
ZenRelations.ZItem.ZItem.manage_afterAdd

manage_afterClone(self, item)

Copied code from ObjectManager
Overrides:
ZenRelations.ZItem.ZItem.manage_afterClone

manage_beforeDelete(self, item, container)

Copied code from ObjectManager
Overrides:
ZenRelations.ZItem.ZItem.manage_beforeDelete

objectIds(self, spec=None)

only return contained objects
Overrides:
ZenRelations.ZItem.ZItem.objectValues

objectIdsAll(self, spec=None)

only return contained objects
Overrides:
ZenRelations.ZItem.ZItem.objectValues

objectItems(self, spec=None)

over ride to only return owned objects for many to many rel
Overrides:
ZenRelations.ZItem.ZItem.objectValues

objectItemsAll(self, spec=None)

over ride to only return owned objects for many to many rel
Overrides:
ZenRelations.ZItem.ZItem.objectValues

objectValues(self, spec=None)

over ride to only return owned objects for many to many rel
Overrides:
ZenRelations.ZItem.ZItem.objectValues

objectValuesAll(self, spec=None)

over ride to only return owned objects for many to many rel
Overrides:
ZenRelations.ZItem.ZItem.objectValues

objectValuesGen(self)

Generator that returns all related objects.

_add(self, obj)

add an object to one side of a ToManyContRelationship.
Overrides:
ZenRelations.RelationshipBase.RelationshipBase._add

_getCopy(self, container)

make new relation add copies of contained objs and refs if the relation is a many to many
Overrides:
OFS.CopySupport.CopySource._getCopy

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

look up in our local store and wrap in our aq_chain
Overrides:
ZenRelations.ToManyRelationshipBase.ToManyRelationshipBase._getOb

_remoteRemove(self, obj=None)

remove an object from the far side of this relationship if no object is passed in remove all objects
Overrides:
ZenRelations.RelationshipBase.RelationshipBase._remoteRemove

_remove(self, obj=None)

remove object from our side of a relationship
Overrides:
ZenRelations.RelationshipBase.RelationshipBase._remove

_setObject(self, id, object, roles=None, user=None, set_owner=1)

ObjectManager interface to add contained object.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('View', ('objectIds', 'objectValues', 'objectValuesAll')),)          

manage_afterAdd__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_afterClone__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_beforeDelete__roles__

Type:
tuple
Value:
('Manager',)                                                           

meta_type

Type:
str
Value:
'ToManyContRelationship'                                               

objectIds__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfd88>                                   

objectValues__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfd88>                                   

objectValuesAll__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfd88>                                   

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