class documentation

class InMemoryWordsRealm(WordsRealm): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method add​Group Add the given group to this service.
Method add​User Add the given user to this service.
Method itergroups Return all groups available on this service.
Method lookup​Group Retrieve a group by name.
Method lookup​User Undocumented
Instance Variable groups Undocumented
Instance Variable users Undocumented

Inherited from WordsRealm:

Method create​Group Create a new group with the given name.
Method create​User Create a new user with the given name.
Method get​Group Retrieve the group by the given name.
Method get​User Retrieve the user by the given name.
Method group​Factory Undocumented
Method logout​Factory Undocumented
Method request​Avatar Return avatar which provides one of the given interfaces.
Method user​Factory Undocumented
Class Variable create​Group​On​Request A boolean indicating whether getGroup should implicitly create groups which are requested but which do not yet exist.
Class Variable create​User​On​Request A boolean indicating whether getUser should implicitly create users which are requested but which do not yet exist.
Instance Variable name A short string identifying this chat service (eg, a hostname)
Class Variable _encoding Undocumented
def __init__(self, *a, **kw): (source)
def addGroup(self, group): (source)
Add the given group to this service.
Parameters
group:IGroupUndocumented
Returns
twisted.internet.defer.DeferredA Deferred which fires with None when the group is added, or which fails with twisted.words.ewords.DuplicateGroup if a group with the same name exists already.
def addUser(self, user): (source)

Add the given user to this service.

This is an internal method intended to be overridden by WordsRealm subclasses, not called by external code.

Parameters
user:IUserUndocumented
Returns
twisted.internet.defer.DeferredA Deferred which fires with None when the user is added, or which fails with twisted.words.ewords.DuplicateUser if a user with the same name exists already.
def itergroups(self): (source)
Return all groups available on this service.
Returns
twisted.internet.defer.DeferredA Deferred which fires with a list of IGroup providers.
def lookupGroup(self, name): (source)

Retrieve a group by name.

Unlike getGroup, this will never implicitly create a group.

Parameters
name:strUndocumented
Returns
twisted.internet.defer.DeferredA Deferred which fires with the group by the given name, or which fails with twisted.words.ewords.NoSuchGroup.
def lookupUser(self, name): (source)
groups: dict = (source)

Undocumented

users: dict = (source)

Undocumented