Package twisted :: Package spread :: Module flavors :: Class Serializable
[show private | hide private]
[frames | no frames]

Class Serializable

Jellyable --+
            |
           Serializable

Known Subclasses:
Copyable, Referenceable, Viewable

An object that can be passed remotely.

I am a style of object which can be serialized by Perspective Broker. Objects which wish to be referenceable or copied remotely have to subclass Serializable. However, clients of Perspective Broker will probably not want to directly subclass Serializable; the Flavors of transferable objects are listed below.

What it means to be "Serializable" is that an object can be passed to or returned from a remote method. Certain basic types (dictionaries, lists, tuples, numbers, strings) are serializable by default; however, classes need to choose a specific serialization style: Referenceable, Viewable, Copyable or Cacheable.

You may also pass [lists, dictionaries, tuples] of Serializable instances to or return them from remote methods, as many levels deep as you like.
Method Summary
  processUniqueID(self)
Return an ID which uniquely represents this object for this process.
    Inherited from Jellyable
  getStateFor(self, jellier)
  jellyFor(self, jellier)

Class Variable Summary
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

processUniqueID(self)

Return an ID which uniquely represents this object for this process.

By default, this uses the 'id' builtin, but can be overridden to indicate that two values are identity-equivalent (such as proxies for the same object).

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy twisted.spread.flavors.Serializable>                    

__implements__

Type:
_implementsTuple
Value:
(<MetaInterface twisted.spread.interfaces.IJellyable>,)                

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x30472c10>       

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