interface documentation
class IChatService(Interface): (source)
Known implementations: twisted.words.service.WordsRealm
Undocumented
Method | create |
Create a new group with the given name. |
Method | create |
Create a new user with the given name. |
Method | get |
Retrieve the group by the given name. |
Method | get |
Retrieve the user by the given name. |
Method | itergroups |
Return all groups available on this service. |
Method | lookup |
Retrieve a group by name. |
Attribute | create |
A boolean indicating whether getGroup should implicitly create groups which are requested but which do not yet exist. |
Attribute | create |
A boolean indicating whether getUser should implicitly create users which are requested but which do not yet exist. |
Attribute | name |
A short string identifying this chat service (eg, a hostname) |
Create a new group with the given name.
Parameters | |
name:str | Undocumented |
Returns | |
twisted.internet.defer.Deferred | A Deferred which fires with the created group, or with fails with twisted.words.ewords.DuplicateGroup if a group by that name exists already. |
Create a new user with the given name.
Parameters | |
name:str | Undocumented |
Returns | |
twisted.internet.defer.Deferred | A Deferred which fires with the created user, or with fails with twisted.words.ewords.DuplicateUser if a user by that name exists already. |
Retrieve the group by the given name.
Parameters | |
name:str | Undocumented |
Returns | |
twisted.internet.defer.Deferred | A Deferred which fires with the group with the given name if one exists (or if one is created due to the setting of IChatService.createGroupOnRequest , or which fails with twisted.words.ewords.NoSuchGroup if no such group exists. |
Retrieve the user by the given name.
Parameters | |
name:str | Undocumented |
Returns | |
twisted.internet.defer.Deferred | A Deferred which fires with the user with the given name if one exists (or if one is created due to the setting of IChatService.createUserOnRequest , or which fails with twisted.words.ewords.NoSuchUser if no such user exists. |
Return all groups available on this service.
Returns | |
twisted.internet.defer.Deferred | A Deferred which fires with a list of IGroup providers. |
Retrieve a group by name.
Unlike getGroup, this will never implicitly create a group.
Parameters | |
name:str | Undocumented |
Returns | |
twisted.internet.defer.Deferred | A Deferred which fires with the group by the given name, or which fails with twisted.words.ewords.NoSuchGroup . |
A boolean indicating whether getGroup
should implicitly create groups which are requested but which do not yet exist.
A boolean indicating whether getUser
should implicitly create users which are requested but which do not yet exist.