| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
|
ICopyable I represent an object which is passed-by-value across PB connections. |
|||
| Copyable | |||
|
CopyableSlicer I handle ICopyable objects (things which are copied by value). |
|||
| Copyable2 | |||
| RemoteCopyUnslicer | |||
| NonCyclicRemoteCopyUnslicer | |||
|
IRemoteCopy This interface defines what a RemoteCopy class must do. |
|||
| RemoteCopyClass | |||
| _RemoteCopyBase | |||
| RemoteCopyOldStyle | |||
| RemoteCopy | |||
|
AttributeDictConstraint This is a constraint for dictionaries that are used for attributes. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
CopyableRegistry = {}
|
|||
debug_CopyableFactories = {}
|
|||
debug_RemoteCopyClasses =
|
|||
|
|||
This is a shortcut for arranging to serialize third-party clases. 'copier' must be a callable which accepts an instance of the class you want to serialize, and returns a tuple of (typename, state_dictionary). If it returns a typename of None, the original class's fully-qualified classname is used. |
Tell PB that unslicerfactory can be used to handle Copyable objects that provide a getTypeToCopy name of 'typename'. 'unslicerfactory' must be a callable which takes no arguments and returns an object which provides IUnslicer. |
Tell PB that 'factory' can be used to handle Copyable objects that provide a getTypeToCopy name of 'typename'. 'factory' must be a callable which accepts a state dictionary and returns a fully-formed instance. 'cyclic' is a boolean, which should be set to False to avoid using a Deferred to provide the resulting RemoteCopy instance. This is needed to deserialize Failures (or instances which inherit from one, like CopiedFailure). In exchange for this, it cannot handle reference cycles. |
Tell PB that remote_copy_class is the appropriate RemoteCopy class to use when deserializing a Copyable sequence that is tagged with 'typename'. 'remote_copy_class' should be a RemoteCopy subclass or implement the same interface, which means its constructor takes no arguments and it has a setCopyableState(state) method to actually set the instance's state after initialization. It must also have a nonCyclic attribute. |
|
|||
debug_RemoteCopyClasses
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 14 18:27:46 2008 | http://epydoc.sourceforge.net |