t.s.p.RemoteCopy(Unjellyable) : class documentation

Part of twisted.spread.pb View Source View In Hierarchy

Known subclasses: twisted.spread.pb.RemoteCache, twisted.web.distrib.Request

I am a remote copy of a Copyable object.

When the state from a Copyable object is received, an instance will be created based on the copy tags table (see setUnjellyableForClass) and sent the setCopyableState message. I provide a reasonable default implementation of that message; subclass me if you wish to serve as a copier for remote data.

NOTE: copiers are invoked with no arguments. Do not implement a constructor which requires args in a subclass of RemoteCopy!
Method setCopyableState I will be invoked with the state to copy locally.
Method unjellyFor Perform the inverse operation of Jellyable.jellyFor.

Inherited from Unjellyable:

Method setStateFor Undocumented
def setCopyableState(self, state): (source)

I will be invoked with the state to copy locally.

'state' is the data returned from the remote object's 'getStateToCopyFor' method, which will often be the remote object's dictionary (or a filtered approximation of it depending on my peer's perspective).
def unjellyFor(self, unjellier, jellyList): (source)
Perform the inverse operation of Jellyable.jellyFor.
See Alsotwisted.spread.interfaces.IUnjellyable.unjellyFor
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:22:34.