| Trees | Indices | Help |
|
|---|
|
|
ExtensionClass.Base --+
|
OFS.CopySupport.CopyContainer --+
|
RelCopySupport.RelCopyContainer --+
|
ExtensionClass.Base --+ |
| |
OFS.CopySupport.CopyContainer --+ |
| |
ExtensionClass.Base --+ | |
| | |
App.Management.Navigation --+ |
| |
ExtensionClass.Base --+ | |
| | |
App.Management.Tabs --+ |
| |
Acquisition.Implicit --+ |
| |
Persistence.Persistent --+ |
| |
ExtensionClass.Base --+ | |
| | |
webdav.EtagSupport.EtagSupport --+ | | |
| | | |
webdav.Lockable.LockableItem --+ | |
| | |
webdav.Resource.Resource --+ | |
| | |
webdav.Collection.Collection --+ |
| |
OFS.Traversable.Traversable --+ |
| |
OFS.ObjectManager.ObjectManager --+
|
ExtensionClass.Base --+ |
| |
ExtensionClass.Base --+ | |
| | |
OFS.CopySupport.CopySource --+ |
| |
ExtensionClass.Base --+ | |
| | |
App.Management.Tabs --+ |
| |
OFS.Traversable.Traversable --+ |
| |
AccessControl.Owned.Owned --+ |
| |
ZItem.ZItem --+ |
| |
Acquisition.Implicit --+ |
| |
AccessControl.Role.RoleManager --+ |
| |
PrimaryPathObjectManager.PrimaryPathManager --+
|
ExtensionClass.Base --+ |
| |
App.Undo.UndoSupport --+
|
PrimaryPathObjectManager.PrimaryPathObjectManager --+
|
object --+ |
| |
ExtensionClass.Base --+ | |
| | |
OFS.ZDOM.Node --+ | | |
| | | |
OFS.ZDOM.Element --+ | | |
| | | |
OFS.ZDOM.ElementWithAttributes --+ | |
| | |
OFS.PropertyManager.PropertyManager --+ |
| |
ZenPropertyManager.ZenPropertyManager --+
|
RelationshipManager
RelationshipManger is an ObjectManager like class that can contain
relationships (in fact relationships can only be added to a
RelationshipManager).
Relationships are defined on an RM by the hash _relations. It
should be defined on the class so that it isn't stored in the database.
If there is inheritance involved remember to add the base class _relations
definition to the current class so that all relationships for the class
are defined on it.
remoteClassStr - is a string that represents the full path to the remote
class. Its a string because in most cases the classes
will be in different modules which would cause a recursive
import of the two modules.
_relations = (
("toonename", ToOne(ToMany, remoteClassStr, remoteName)),
("tomanyname", ToMany(ToMany, remoteClassStr, remoteName)),
)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
|||
|
|||
_relations = ()
|
|||
meta_type = 'Relationship Manager'
|
|||
security = ClassSecurityInfo()
|
|||
manage_options = PrimaryPathObjectManager.manage_options+ ZenP
|
|||
manage_main = DTMLFile('dtml/RelationshipManagerMain', globals())
|
|||
_operation = -1
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Remove an object from a relationship. If no object is passed all objects are removed. |
Track __primary_parent__ when we are set into an object
|
Create a copy of this relationship manager. This involes copying relationships and removing invalid relations (ie ones with ToOne) and performing copies of any contained objects. Properties are also set on the new object.
|
Manage copy/move/rename state for use in manage_beforeDelete.
|
Prevent move unless we are being called from our primary path.
|
Lookup the schema definition for a relationship. All base classes are checked until RelationshipManager is found. |
Return an xml based representation of a RelationshipManager
<object id='/Devices/Servers/Windows/dhcp160.confmon.loc'
module='Products.Confmon.IpInterface' class='IpInterface'>
<property id='name'>jim</property>
<toone></toone>
<tomany></tomany>
<tomanycont></tomanycont>
</object>
|
Return an xml representation of a RelationshipManagers properties
<property id='name' type='type' mode='w' select_variable='selectvar'>
value
</property>
value will be converted to is correct python type on import
|
return the workspace of the related object using its primary path
|
|
|||
manage_options
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1.1812 on Tue Oct 11 12:51:33 2011 | http://epydoc.sourceforge.net |