Class: Perspective | Twisted-0.17.4/twisted/spread/pb.py | ||||||||
---|---|---|---|---|---|---|---|---|---|
A perspective on a service. perspective, n. : The relationship of aspects of a subject to each
other and to a whole: 'a perspective of history'; A service represents a collection of state, plus a collection of
perspectives. Perspectives are the way that networked clients have
a Although you may have a service onto which there is only one perspective, the common case is that a Perspective will be analagous to (or the same as) a "user"; if you are creating a PB-enabled service, your User (or equivalent) class should subclass Perspective. Initially, a peer requesting a perspective will receive only a
RemoteReference to a Perspective. When a method is called on
that RemoteReference, it will translate to a method on the remote
perspective named
|