Package svs_core :: Package commands :: Module scriptcommands :: Class Command
[show private | hide private]
[frames | no frames]

Class Command

Jellyable --+        
            |        
 Serializable --+    
                |    
         Copyable --+
                    |
  Unjellyable --+   |
                |   |
       RemoteCopy --+
                    |
                   Command


Method Summary
  __init__(self)
  getStateToCopy(self)
Gather state to send when I am serialized for a peer.
  setCopyableState(self, state)
I will be invoked with the state to copy locally.
    Inherited from Copyable
  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)
    Inherited from RemoteCopy
  unjellyFor(self, unjellier, jellyList)
    Inherited from Unjellyable
  setStateFor(self, unjellier, state)

Class Variable Summary
    Inherited from Serializable
Implements __implemented__ = <implementedBy twisted.spread.flavors....
_implementsTuple __implements__ = (<MetaInterface twisted.spread.interfac...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

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.
Overrides:
twisted.spread.flavors.Copyable.getStateToCopy (inherited documentation)

setCopyableState(self, state)

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).
Overrides:
twisted.spread.flavors.RemoteCopy.setCopyableState (inherited documentation)

Generated by Epydoc 2.1 on Thu Oct 20 15:30:24 2005 http://epydoc.sf.net