class AbstractAccount(styles.Versioned): (source)
Known subclasses: twisted.words.im.ircsupport.IRCAccount, twisted.words.im.pbsupport.PBAccount
Constructor: AbstractAccount(accountName, autoLogin, username, password, ...)
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 | get |
Group factory. |
| Method | get |
Person factory. |
| Method | is |
Undocumented |
| Method | log |
Log on to this account. |
| Method | upgrate |
Undocumented |
| Class Variable | persistance |
Undocumented |
| Instance Variable | account |
No summary |
| Instance Variable | auto |
No summary |
| Instance Variable | client |
Undocumented |
| Instance Variable | host |
No summary |
| Instance Variable | password |
No summary |
| Instance Variable | port |
No summary |
| Instance Variable | username |
No summary |
| Method | _cb_log |
Undocumented |
| Method | _client |
Undocumented |
| Method | _login |
Errorback for logOn. |
| Method | _start |
Start the sign on process. |
| Class Variable | _group |
A Callable that will return a IGroup appropriate for this account type. |
| Class Variable | _person |
A Callable that will return a IPerson appropriate for this account type. |
| Instance Variable | _groups |
Undocumented |
| Instance Variable | _is |
Whether I am in the process of establishing a connection to the server. |
| Instance Variable | _is |
Whether I am currently on-line with the server. |
| Instance Variable | _persons |
Undocumented |
Inherited from Versioned:
| Method | __setstate__ |
Undocumented |
| Method | version |
(internal) Do a version upgrade. |
| Class Variable | persistence |
Undocumented |
| Class Variable | persistence |
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 |
Errorback for logOn.
| Parameters | |
| reason:Failure | Undocumented |
| Returns | |
| Failure | reason, for further processing in the callback chain. |
twisted.words.im.pbsupport.PBAccountWhether I am in the process of establishing a connection to the server.