Module Expr Str ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Break orelse Pass Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str body If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore TupleLoad Str Str Str body TryExcept body Delete SubscriptDel NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad orelse Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Instance Messenger base classes for protocol support.

You will find these useful if you're adding a new protocol to IM.
 twisted.words.im.locals ONLINE OFFLINE OfflineError twisted.words.im interfaces twisted.internet.protocol Protocol twisted.python.reflect prefixedMethods twisted.persisted styles twisted.internet error AbstractGroup N/A N/A __init__ N/A N/A self name account N/A N/A N/A N/A self name name N/A N/A self account account N/A getGroupCommands N/A N/A self N/A N/A N/A finds group commands

        these commands are methods on me that start with imgroup_; they are
        called with no arguments
         N/A N/A prefixedMethods self imgroup_ N/A getTargetCommands N/A N/A self target N/A N/A N/A finds group commands

        these commands are methods on me that start with imgroup_; they are
        called with a user present within this room as an argument

        you may want to override this in your group in order to filter for
        appropriate commands on the given user
         N/A N/A prefixedMethods self imtarget_ N/A join N/A N/A self N/A N/A N/A N/A N/A N/A self account client N/A N/A OfflineError N/A N/A N/A N/A N/A self account client joinGroup N/A self name N/A leave N/A N/A self N/A N/A N/A N/A N/A N/A self account client N/A N/A OfflineError N/A N/A N/A N/A N/A self account client leaveGroup N/A self name N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %r> N/A N/A self __class__ N/A self name N/A __str__ N/A N/A self N/A N/A N/A N/A %s@%s N/A N/A self name N/A N/A self account accountName N/A N/A AbstractPerson N/A N/A __init__ N/A N/A self name baseAccount N/A N/A N/A N/A self name name N/A N/A self account baseAccount N/A N/A self status OFFLINE N/A getPersonCommands N/A N/A self N/A N/A N/A finds person commands

        these commands are methods on me that start with imperson_; they are
        called with no arguments
         N/A N/A prefixedMethods self imperson_ N/A getIdleTime N/A N/A self N/A N/A N/A 
        Returns a string.
         N/A -- N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %r/%s> N/A N/A self __class__ N/A self name N/A self status N/A __str__ N/A N/A self N/A N/A N/A N/A %s@%s N/A N/A self name N/A N/A self account accountName N/A N/A AbstractClientMixin N/A N/A N/A Designed to be mixed in to a Protocol implementing class.

    Inherit from me first.

    @ivar _logonDeferred: Fired when I am done logging in.
     __init__ N/A N/A self account chatui logonDeferred N/A N/A N/A base N/A N/A self __class__ __bases__ N/A N/A N/A issubclass base Protocol N/A N/A N/A N/A self __class__ _protoBase base N/A N/A N/A N/A N/A self account account N/A N/A self chat chatui N/A N/A self _logonDeferred logonDeferred N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self _protoBase connectionMade self N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A self account _clientLost self reason N/A N/A N/A self unregisterAsAccountClient N/A N/A N/A N/A self _protoBase connectionLost self reason N/A unregisterAsAccountClient N/A N/A self N/A N/A N/A Tell the chat UI that I have `signed off'.
         N/A N/A N/A N/A self chat unregisterAccountClient self N/A N/A AbstractAccount N/A N/A styles Versioned N/A N/A Base class for Accounts.

    I am the start of an implementation of L{IAccount<interfaces.IAccount>}, I
    implement L{isOnline} and most of L{logOn}, though you'll need to implement
    L{_startLogOn} in a subclass.

    @cvar _groupFactory: A Callable that will return a L{IGroup} appropriate
        for this account type.
    @cvar _personFactory: A Callable that will return a L{IPerson} appropriate
        for this account type.

    @type _isConnecting: boolean
    @ivar _isConnecting: Whether I am in the process of establishing a
    connection to the server.
    @type _isOnline: boolean
    @ivar _isOnline: Whether I am currently on-line with the server.

    @ivar accountName:
    @ivar autoLogin:
    @ivar username:
    @ivar password:
    @ivar host:
    @ivar port:
     N/A _isOnline 0 N/A _isConnecting 0 N/A client None N/A _groupFactory AbstractGroup N/A _personFactory AbstractPerson N/A persistanceVersion 2 __init__ N/A N/A self accountName autoLogin username password host port N/A N/A N/A N/A self accountName accountName N/A N/A self autoLogin autoLogin N/A N/A self username username N/A N/A self password password N/A N/A self host host N/A N/A self port port N/A N/A self _groups N/A N/A N/A self _persons N/A N/A upgrateToVersion2 N/A N/A self N/A N/A N/A k N/A _groups _persons N/A N/A N/A N/A hasattr self k N/A N/A N/A setattr self k N/A N/A __getstate__ N/A N/A self N/A N/A N/A state N/A N/A N/A styles Versioned __getstate__ self N/A k N/A client _isOnline _isConnecting N/A N/A N/A N/A N/A state N/A k N/A N/A N/A KeyError N/A N/A N/A state N/A isOnline N/A N/A self N/A N/A N/A N/A self _isOnline N/A logOn N/A N/A self chatui N/A N/A N/A Log on to this account.

        Takes care to not start a connection if a connection is
        already in progress.  You will need to implement
        L{_startLogOn} for this to work, and it would be a good idea
        to override L{_loginFailed} too.

        @returntype: Deferred L{interfaces.IClient}
         N/A N/A N/A N/A self _isConnecting N/A N/A self _isOnline N/A N/A N/A self _isConnecting 1 N/A d N/A N/A self _startLogOn chatui N/A N/A N/A d addCallback N/A self _cb_logOn N/A N/A N/A d addCallback N/A chatui registerAccountClient N/A N/A N/A d addErrback N/A self _loginFailed N/A d N/A N/A N/A N/A error ConnectError Connection in progress N/A getGroup N/A N/A self name N/A N/A N/A Group factory.

        @param name: Name of the group on this account.
        @type name: string
         N/A group N/A N/A N/A self _groups get name N/A N/A group None N/A N/A group N/A N/A self _groupFactory name self N/A N/A N/A self _groups N/A name group N/A group N/A getPerson N/A N/A self name N/A N/A N/A Person factory.

        @param name: Name of the person on this account.
        @type name: string
         N/A person N/A N/A N/A self _persons get name N/A N/A person None N/A N/A person N/A N/A self _personFactory name self N/A N/A N/A self _persons N/A name person N/A person N/A _startLogOn N/A N/A self chatui N/A N/A N/A Start the sign on process.

        Factored out of L{logOn}.

        @returntype: Deferred L{interfaces.IClient}
         N/A N/A NotImplementedError N/A _cb_logOn N/A N/A self client N/A N/A N/A N/A self _isConnecting 0 N/A N/A self _isOnline 1 N/A N/A self client client N/A client N/A _loginFailed N/A N/A self reason N/A N/A N/A Errorback for L{logOn}.

        @type reason: Failure

        @returns: I{reason}, for further processing in the callback chain.
        @returntype: Failure
         N/A N/A self _isConnecting 0 N/A N/A self _isOnline 0 N/A reason N/A _clientLost N/A N/A self client reason N/A N/A N/A N/A self client None N/A N/A self _isConnecting 0 N/A N/A self _isOnline 0 N/A reason N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s: %s (%s@%s:%s)> N/A N/A self __class__ N/A self accountName N/A self username N/A self host N/A self port N/A N/A