Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIs NameLoad AttributeLoad NameLoad attr body Return BinOpAdd NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr IfExp CompareIsNot NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad Num AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad Num decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return CompareIsNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad body TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Pass Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise NameLoad If UnaryOpNot CompareLtLtE Num NameLoad Call NameLoad AttributeLoad NameLoad attr body Raise NameLoad Return NameLoad decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Raise NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list decorator_list NameLoad
N/A compat py2to3 normalizing NormalizedDict robottypes is_string ConnectionCache N/A object N/A N/A Cache for test libs to use with concurrent connections, processes, etc.

    The cache stores the registered connections (or other objects) and allows
    switching between them using generated indices or user given aliases.
    This is useful with any test library where there's need for multiple
    concurrent connections, processes, etc.

    This class can, and is, used also outside the core framework by SSHLibrary,
    Selenium(2)Library, etc. Backwards compatibility is thus important when
    doing changes.
     __init__ N/A N/A self no_current_msg N/A No open connection. N/A N/A N/A self _no_current N/A NoConnection no_current_msg N/A N/A self current N/A self _no_current N/A N/A self _connections N/A N/A N/A self _aliases N/A NormalizedDict N/A current_index N/A N/A self N/A N/A N/A N/A self N/A N/A None N/A N/A index conn N/A enumerate self N/A N/A N/A conn N/A self current N/A N/A N/A index 1 N/A property current_index N/A N/A self index N/A N/A N/A N/A self current N/A N/A index None N/A N/A self _connections N/A N/A index 1 N/A self _no_current N/A N/A current_index setter register N/A N/A self connection alias N/A None N/A N/A Registers given connection with optional alias and returns its index.

        Given connection is set to be the :attr:`current` connection.

        If alias is given, it must be a string. Aliases are case and space
        insensitive.

        The index of the first connection after initialization, and after
        :meth:`close_all` or :meth:`empty_cache`, is 1, second is 2, etc.
         N/A N/A self current connection N/A N/A N/A N/A self _connections append connection N/A index N/A len N/A self _connections N/A N/A is_string alias N/A N/A N/A N/A self _aliases N/A alias index N/A index N/A switch N/A N/A self alias_or_index N/A N/A N/A Switches to the connection specified by the given alias or index.

        Updates :attr:`current` and also returns its new value.

        Alias is whatever was given to :meth:`register` method and indices
        are returned by it. Index can be given either as an integer or
        as a string that can be converted to an integer. Raises an error
        if no connection with the given index or alias found.
         N/A N/A self current N/A N/A self get_connection alias_or_index N/A N/A self current N/A get_connection N/A N/A self alias_or_index N/A None N/A N/A Get the connection specified by the given alias or index..

        If ``alias_or_index`` is ``None``, returns the current connection
        if it is active, or raises an error if it is not.

        Alias is whatever was given to :meth:`register` method and indices
        are returned by it. Index can be given either as an integer or
        as a string that can be converted to an integer. Raises an error
        if no connection with the given index or alias found.
         N/A N/A alias_or_index None N/A N/A N/A self N/A N/A N/A N/A N/A self current raise_error N/A N/A self current N/A N/A N/A index N/A N/A self _resolve_alias_or_index alias_or_index N/A N/A N/A ValueError N/A N/A N/A RuntimeError N/A Non-existing index or alias '%s'. alias_or_index N/A N/A N/A self _connections N/A N/A index 1 N/A N/A __getitem__ get_connection close_all N/A N/A self closer_method N/A close N/A N/A Closes connections using given closer method and empties cache.

        If simply calling the closer method is not adequate for closing
        connections, clients should close connections themselves and use
        :meth:`empty_cache` afterwards.
         N/A conn N/A self _connections N/A N/A N/A N/A getattr conn closer_method N/A N/A N/A self empty_cache N/A N/A self current N/A empty_cache N/A N/A self N/A N/A N/A Empties the connection cache.

        Indexes of the new connections starts from 1 after this.
         N/A N/A self current N/A self _no_current N/A N/A self _connections N/A N/A N/A self _aliases N/A NormalizedDict N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self _connections N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self _connections N/A __nonzero__ N/A N/A self N/A N/A N/A N/A N/A self current N/A self _no_current N/A _resolve_alias_or_index N/A N/A self alias_or_index N/A N/A N/A N/A N/A N/A N/A self _resolve_alias alias_or_index N/A N/A N/A ValueError N/A N/A N/A N/A self _resolve_index alias_or_index N/A _resolve_alias N/A N/A self alias N/A N/A N/A N/A is_string alias N/A N/A N/A N/A N/A N/A self _aliases N/A alias N/A N/A N/A KeyError N/A N/A N/A ValueError N/A _resolve_index N/A N/A self index N/A N/A N/A N/A N/A index N/A int index N/A N/A N/A TypeError N/A N/A ValueError N/A N/A N/A 0 index N/A len N/A self _connections N/A N/A ValueError N/A index N/A N/A py2to3 NoConnection N/A object N/A __init__ N/A N/A self message N/A N/A N/A N/A self message message N/A __getattr__ N/A N/A self name N/A N/A N/A N/A N/A N/A name startswith __ N/A N/A name endswith __ N/A N/A AttributeError N/A N/A N/A self raise_error N/A raise_error N/A N/A self N/A N/A N/A N/A RuntimeError N/A self message N/A __nonzero__ N/A N/A self N/A N/A N/A False N/A N/A py2to3