Package twisted :: Package spread :: Module pb :: Class IPerspective
[show private | hide private]
[frames | no frames]

Type IPerspective

object --+    
         |    
 Interface --+
             |
            IPerspective


per*spec*tive, n. : The relationship of aspects of a subject to each other and to a whole: 'a perspective of history'; 'a need to view the problem in the proper perspective'.

This is a Perspective Broker-specific wrapper for an avatar. That is to say, a PB-published view on to the business logic for the system's concept of a 'user'.

The concept of attached/detached is no longer implemented by the framework. The realm is expected to implement such semantics if needed.
Method Summary
A jelly list. perspectiveMessageReceived(self, broker, message, args, kwargs)
This method is called when a network message is received.
    Inherited from Interface
  adaptWith(self, using, to, registry)
(Class method)
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Method Details

perspectiveMessageReceived(self, broker, message, args, kwargs)

This method is called when a network message is received.
Parameters:
broker - The Perspective Broker.
message - The name of the method called by the other end.
           (type=str)
args - The arguments that were passed by the other end. It is recommend that you use the `unserialize' method of the broker to decode this.
           (type=list in jelly format)
kwargs - The keyword arguments that were passed by the other end. It is recommended that you use the `unserialize' method of the broker to decode this.
           (type=dict in jelly format)
Returns:
It is recommended that you use the `serialize' method of the broker on whatever object you need to return to generate the return value.
           (type=A jelly list.)

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net