class documentation

class User: (source)

Implements interfaces: twisted.words.iwords.IUser

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method itergroups Return an iterator of all groups of which this user is a member.
Method join Attempt to join the given group.
Method leave Discontinue participation in the given group.
Method logged​In Invoked by the associated IChatService when login occurs.
Method logout Undocumented
Method send Send the given message to the given user or group.
Instance Variable groups Undocumented
Instance Variable last​Message A POSIX timestamp indicating the time of the last message received from this user.
Instance Variable mind A reference to the mind which logged in to this user. Set if and only if the user is logged in.
Instance Variable name A short string, unique among users.
Instance Variable realm A reference to the Realm to which this user belongs. Set if and only if the user is logged in.
Instance Variable sign​On A POSIX timestamp indicating this user's most recent sign on time.
def __init__(self, name): (source)

Undocumented

def itergroups(self): (source)
Return an iterator of all groups of which this user is a member.
def join(self, group): (source)
Attempt to join the given group.
Parameters
group:IGroupUndocumented
Returns
twisted.internet.defer.DeferredUndocumented
def leave(self, group, reason=None): (source)
Discontinue participation in the given group.
Parameters
group:IGroupUndocumented
reasonUndocumented
Returns
twisted.internet.defer.DeferredUndocumented
def loggedIn(self, realm, mind): (source)
Invoked by the associated IChatService when login occurs.
Parameters
realmThe IChatService through which login is occurring.
mindThe mind object used for cred login.
def logout(self): (source)

Undocumented

def send(self, recipient, message): (source)
Send the given message to the given user or group.
Parameters
recipient:Either IUser or IGroupUndocumented
message:dictUndocumented
groups: list = (source)

Undocumented

lastMessage = (source)
A POSIX timestamp indicating the time of the last message received from this user.
mind = (source)
A reference to the mind which logged in to this user. Set if and only if the user is logged in.
name = (source)
A short string, unique among users.
realm = (source)
A reference to the Realm to which this user belongs. Set if and only if the user is logged in.
signOn = (source)
A POSIX timestamp indicating this user's most recent sign on time.