Class t.w.s.PBMindReference(pb.RemoteReference):

Part of twisted.words.service View Source View In Hierarchy

Implements interfaces: twisted.words.iwords.IChatClient
No class docstring
Method receive Callback notifying this user of the given message sent by the
Method groupMetaUpdate Callback notifying this user that the metadata for the given
Method userJoined Callback notifying this user that the given user has joined
Method userLeft Callback notifying this user that the given user has left the

Inherited from RemoteReference:

Method __init__ (internal) Initialize me with a broker and a locally-unique ID.
Method notifyOnDisconnect Register a callback to be called if our broker gets disconnected.
Method dontNotifyOnDisconnect Remove a callback that was registered with notifyOnDisconnect.
Method _disconnected Called if we are disconnected and have callbacks registered.
Method jellyFor If I am being sent back to where I came from, serialize as a local backreference.
Method unjellyFor Unjelly myself for the jellier.
Method callRemote Asynchronously invoke a remote method.
Method remoteMethod Get a RemoteMethod for this key.
Method __cmp__ Compare me [to another RemoteReference].
Method __hash__ Hash me.
Method __del__ Do distributed reference counting on finalization.

Inherited from Serializable (via RemoteReference):

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

Inherited from Jellyable (via RemoteReference, Serializable):

Method getStateFor Undocumented

Inherited from Ephemeral (via RemoteReference):

Method __getstate__ Undocumented
Method __setstate__ Undocumented
def receive(self, sender, recipient, message): (source)

Callback notifying this user of the given message sent by the given user.

This will be invoked whenever another user sends a message to a group this user is participating in, or whenever another user sends a message directly to this user. In the former case, recipient will be the group to which the message was sent; in the latter, it will be the same object as the user who is receiving the message.
Parameterssender(type: IUser )
recipient(type: IUser or IGroup )
message(type: dict )
ReturnsA Deferred which fires when the message has been delivered, or which fails in some way. If the Deferred fails and the message was directed at a group, this user will be removed from that group. (type: twisted.internet.defer.Deferred )
def groupMetaUpdate(self, group, meta): (source)
Callback notifying this user that the metadata for the given group has changed.
Parametersgroup(type: IGroup )
meta(type: dict )
Returns(type: twisted.internet.defer.Deferred )
def userJoined(self, group, user): (source)
Callback notifying this user that the given user has joined the given group.
Parametersgroup(type: IGroup )
user(type: IUser )
Returns(type: twisted.internet.defer.Deferred )
def userLeft(self, group, user, reason=None): (source)
Callback notifying this user that the given user has left the given group for the given reason.
Parametersgroup(type: IGroup )
user(type: IUser )
reason(type: unicode )
Returns(type: twisted.internet.defer.Deferred )
API Documentation for twisted, generated by pydoctor.