Package twisted ::
Package spread ::
Module flavors ::
Class Copyable
|
|
Class Copyable
Jellyable
--+
|
Serializable
--+
|
Copyable
- Known Subclasses:
-
Cacheable
,
Keycard
,
Message
,
PBConnectionInfo
,
Request
,
Result
,
Translatable
Subclass me to get copied each time you are returned from or passed to
a remote method.
When I am returned from or passed to a remote method call, I will be
converted into data via a set of callbacks (see my methods for more
info). That data will then be serialized using Jelly, and sent to the
peer.
The peer will then look up the type to represent this with; see RemoteCopy
for details.
Method Summary |
|
getStateToCopy (self)
Gather state to send when I am serialized for a peer. |
|
getStateToCopyFor (self,
perspective)
Gather state to send when I am serialized for a particular
perspective. |
|
getTypeToCopy (self)
Determine what type tag to send for me. |
|
getTypeToCopyFor (self,
perspective)
Determine what type tag to send for me. |
|
jellyFor (self,
jellier)
Assemble type tag and state to copy for this broker. |
Inherited from Serializable |
|
processUniqueID (self)
Return an ID which uniquely represents this object for this
process. |
Inherited from Jellyable |
|
getStateFor (self,
jellier)
|
Class Variable Summary |
Implements |
__implemented__ = <implementedBy twisted.spread.flavors....
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from Jellyable |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
getStateToCopy(self)
Gather state to send when I am serialized for a peer.
I will default to returning self.__dict__. Override this to
customize this behavior.
-
|
getStateToCopyFor(self,
perspective)
Gather state to send when I am serialized for a particular
perspective.
I will default to calling getStateToCopy . Override this to
customize this behavior.
-
|
getTypeToCopy(self)
Determine what type tag to send for me.
By default, send the string representation of my class
(package.module.Class); normally this is adequate, but you may override
this to change it.
-
|
getTypeToCopyFor(self,
perspective)
Determine what type tag to send for me.
By default, defer to self.getTypeToCopy () normally this is
adequate, but you may override this to change it.
-
|
__implemented__
-
- Type:
-
Implements
- Value:
<implementedBy twisted.spread.flavors.Copyable>
|
|
__provides__
-
- Type:
-
ClassProvides
- Value:
<zope.interface.declarations.ClassProvides object at 0x40db0930>
|
|