class AbstractAccount(styles.Versioned): (source)
Known subclasses: twisted.words.im.ircsupport.IRCAccount, twisted.words.im.pbsupport.PBAccount
Base class for Accounts.
I am the start of an implementation of IAccount, I implement isOnline and most of logOn, though you'll need to implement _startLogOn in a subclass.
| Method | __getstate__ |
Get state, adding a version number to it on its way out. |
| Method | __init__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | getGroup |
Group factory. |
| Method | getPerson |
Person factory. |
| Method | isOnline |
Undocumented |
| Method | logOn |
Log on to this account. |
| Method | upgrateToVersion2 |
Undocumented |
| Class Variable | persistanceVersion |
Undocumented |
| Instance Variable | accountName |
|
| Instance Variable | autoLogin |
|
| Instance Variable | client |
Undocumented |
| Instance Variable | host |
|
| Instance Variable | password |
|
| Instance Variable | port |
|
| Instance Variable | username |
|
| Method | _cb_logOn |
Undocumented |
| Method | _clientLost |
Undocumented |
| Method | _loginFailed |
Errorback for logOn. |
| Method | _startLogOn |
Start the sign on process. |
| Class Variable | _groupFactory |
A Callable that will return a IGroup appropriate for this account type. |
| Class Variable | _personFactory |
A Callable that will return a IPerson appropriate for this account type. |
| Instance Variable | _groups |
Undocumented |
| Instance Variable | _isConnecting |
Whether I am in the process of establishing a connection to the server. |
| Instance Variable | _isOnline |
Whether I am currently on-line with the server. |
| Instance Variable | _persons |
Undocumented |
Inherited from Versioned:
| Method | __setstate__ |
Undocumented |
| Method | versionUpgrade |
(internal) Do a version upgrade. |
| Class Variable | persistenceForgets |
Undocumented |
| Class Variable | persistenceVersion |
Undocumented |
| Instance Variable | __dict__ |
Undocumented |
twisted.words.im.pbsupport.PBAccountLog on to this account.
Takes care to not start a connection if a connection is already in progress. You will need to implement _startLogOn for this to work, and it would be a good idea to override _loginFailed too.
| Returns | |
Deferred interfaces.IClient | Undocumented |
logOn.| Parameters | |
| reason:Failure | Undocumented |
| Returns | |
| Failure | reason, for further processing in the callback chain. |
twisted.words.im.pbsupport.PBAccount