| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package im :: Module basesupport :: Class AbstractAccount |
|
Versioned --+
|
AbstractAccount
IRCAccount,
PBAccount,
TOCAccountBase class for Accounts.
I am the start of an implementation ofIAccount, I implement isOnline and most of logOn, though you'll need to implement _startLogOn in a subclass.
| Method Summary | |
|---|---|
__init__(self,
accountName,
autoLogin,
username,
password,
host,
port)
| |
__getstate__(self)
| |
__repr__(self)
| |
_cb_logOn(self,
client)
| |
_clientLost(self,
client,
reason)
| |
| Failure |
Errorback for logOn. |
Deferred interfaces.IClient
|
Start the sign on process. |
Group factory. | |
Person factory. | |
isOnline(self)
| |
Deferred interfaces.IClient
|
Log on to this account. |
upgrateToVersion2(self)
| |
| Inherited from Versioned | |
| |
(internal) Do a version upgrade. | |
| Instance Variable Summary | |
|---|---|
| boolean | _isConnecting: Whether I am in the process of establishing a connection to the
server. |
| boolean | _isOnline: Whether I am currently on-line with the server. |
accountName: | |
autoLogin: | |
host: | |
password: | |
port: | |
username: | |
| Class Variable Summary | |
|---|---|
class |
_groupFactory = twisted.im.basesupport.AbstractGroup |
class |
_personFactory = twisted.im.basesupport.AbstractPerson |
NoneType |
client = None |
int |
persistanceVersion = 2 |
| Inherited from Versioned | |
tuple |
persistenceForgets = ()
|
int |
persistenceVersion = 0 |
| Method Details |
|---|
_loginFailed(self, reason)Errorback forlogOn.
|
_startLogOn(self, chatui)Start the sign on process. Factored out oflogOn.
|
getGroup(self, name)Group factory.
|
getPerson(self, name)Person factory.
|
logOn(self, chatui)Log 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.
|
| Instance Variable Details |
|---|
_isConnectingWhether I am in the process of establishing a connection to the server.
|
_isOnlineWhether I am currently on-line with the server.
|
accountName |
autoLogin |
host |
password |
port |
username |
| Class Variable Details |
|---|
client
|
persistanceVersion
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:08:16 2004 | http://epydoc.sf.net |