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

Class Root

Jellyable --+        
            |        
 Serializable --+    
                |    
    Referenceable --+
                    |
                   Root

Known Subclasses:
TwoPlayerConnection

I provide a root object to pb.Brokers for a pb.BrokerFactory.

When a pb.BrokerFactory produces a pb.Broker, it supplies that pb.Broker with an object named "root". That object is obtained by calling my rootObject method.

See also: pb.getObjectAt
Method Summary
  rootObject(self, broker)
A pb.BrokerFactory is requesting to publish me as a root object.
    Inherited from Referenceable
  jellyFor(self, jellier)
(internal)
  remoteMessageReceived(self, broker, message, args, kw)
A remote message has been received.
    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 Referenceable
NoneType perspective = None                                                                  
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

rootObject(self, broker)

A pb.BrokerFactory is requesting to publish me as a root object.

When a pb.BrokerFactory is sending me as the root object, this method will be invoked to allow per-broker versions of an object. By default I return myself.

Class Variable Details

__implemented__

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

__provides__

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

Generated by Epydoc 2.0 on Sat Dec 9 14:11:19 2006 http://epydoc.sf.net