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
  getStateFor(self, jellier)
(inherited from Jellyable)
  jellyFor(self, jellier)
(internal) (inherited from Referenceable)
  processUniqueID(self)
Return an ID which uniquely represents this object for this process. (inherited from Serializable)
  remoteMessageReceived(self, broker, message, args, kw)
A remote message has been received. (inherited from Referenceable)
  rootObject(self, broker)
A pb.BrokerFactoryis requesting to publish me as a root object.

Class Variable Summary
tuple __implements__

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

__implements__

Type:
tuple
Value:
(<class 'twisted.spread.flavors.IPBRoot'>,)                            

Generated by Epydoc 1.1 on Sun Nov 30 19:33:12 2003 http://epydoc.sf.net