Module Expr Str TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Delete NameDel handlers ExceptHandler body Assign NameStore NameLoad TryExcept body ImportFrom alias identifier alias handlers ExceptHandler type NameLoad body ImportFrom alias identifier alias If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Lambda arguments args defaults TupleLoad Call NameLoad Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str Dict Expr Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body TryExcept body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Dict NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body TryExcept body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr TryExcept body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return Call NameLoad Call AttributeLoad NameLoad attr Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore Call AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel Call AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign SubscriptStore Call AttributeLoad NameLoad attr Slice NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Delete SubscriptDel Call AttributeLoad NameLoad attr Slice NameLoad NameLoad decorator_list Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam NameParam defaults CompareLt Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults CompareLtE Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults CompareEq Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults CompareNotEq Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults CompareGt Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults CompareGtE Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults vararg kwarg Call Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam NameParam defaults SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam NameParam defaults CompareIn NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults SubscriptLoad Call AttributeLoad NameLoad attr Slice NameLoad NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpAdd Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpMult Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpFloorDiv Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpMod Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpPow Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpLShift Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpRShift Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpBitAnd Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpBitXor Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults BinOpBitOr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Lambda arguments args NameParam defaults UnaryOpUSub Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults UnaryOpUAdd Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults UnaryOpInvert Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults vararg kwarg Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list
N/A N/A 
    webapp2_extras.local
    ~~~~~~~~~~~~~~~~~~~~

    This module implements thread-local utilities.

    This implementation comes from werkzeug.local.

    :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
 N/A N/A greenlet getcurrent get_current_greenlet N/A N/A N/A ImportError N/A N/A N/A py.magic greenlet N/A get_current_greenlet N/A greenlet getcurrent N/A greenlet N/A N/A N/A N/A get_current_greenlet int N/A N/A thread get_ident get_current_thread allocate_lock N/A N/A N/A ImportError N/A dummy_thread get_ident get_current_thread allocate_lock N/A N/A get_current_greenlet int N/A N/A get_ident get_current_thread N/A N/A get_ident N/A N/A N/A N/A N/A N/A get_current_thread N/A get_current_greenlet Local N/A object N/A N/A A container for thread-local objects.

    Attributes are assigned or retrieved using the current thread.
     N/A __slots__ N/A __storage__ __lock__ __init__ N/A N/A self N/A N/A N/A N/A N/A object __setattr__ self __storage__ N/A N/A N/A N/A object __setattr__ self __lock__ N/A allocate_lock N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A N/A self __storage__ iteritems N/A __call__ N/A N/A self proxy N/A N/A N/A Creates a proxy for a name. N/A N/A LocalProxy self proxy N/A __release_local__ N/A N/A self N/A N/A N/A N/A N/A N/A self __storage__ pop N/A get_ident None N/A __getattr__ N/A N/A self name N/A N/A N/A N/A N/A N/A self __lock__ acquire N/A N/A N/A N/A N/A N/A N/A N/A self __storage__ N/A N/A get_ident N/A name N/A N/A N/A KeyError N/A N/A N/A AttributeError name N/A N/A N/A N/A N/A self __lock__ release N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A N/A N/A self __lock__ acquire N/A N/A N/A ident N/A get_ident N/A storage N/A self __storage__ N/A N/A ident storage N/A N/A N/A N/A storage N/A ident N/A name value N/A N/A N/A storage N/A ident N/A name value N/A N/A N/A N/A N/A self __lock__ release N/A __delattr__ N/A N/A self name N/A N/A N/A N/A N/A N/A self __lock__ acquire N/A N/A N/A N/A N/A N/A N/A N/A self __storage__ N/A N/A get_ident N/A name N/A N/A N/A KeyError N/A N/A N/A AttributeError name N/A N/A N/A N/A N/A self __lock__ release N/A N/A LocalProxy N/A object N/A N/A Acts as a proxy for a local object.

    Forwards all operations to a proxied object. The only operations not
    supported for forwarding are right handed operands and any kind of
    assignment.

    Example usage::

        from webapp2_extras import Local
        l = Local()

        # these are proxies
        request = l('request')
        user = l('user')

    Whenever something is bound to l.user or l.request the proxy objects
    will forward all operations. If no object is bound a :exc:`RuntimeError`
    will be raised.

    To create proxies to :class:`Local` object, call the object as shown above.
    If you want to have a proxy to an object looked up by a function, you can
    pass a function to the :class:`LocalProxy` constructor::

        route_kwargs = LocalProxy(lambda: webapp2.get_request().route_kwargs)
     N/A __slots__ N/A __local __dict__ __name__ __init__ N/A N/A self local name N/A None N/A N/A N/A N/A object __setattr__ self _LocalProxy__local local N/A N/A N/A object __setattr__ self __name__ name N/A _get_current_object N/A N/A self N/A N/A N/A Return the current object.  This is useful if you want the real
        object behind the proxy at a time for performance reasons or because
        you want to pass the object into a different context.
         N/A N/A N/A hasattr N/A self __local __release_local__ N/A N/A N/A N/A self __local N/A N/A N/A N/A getattr N/A self __local N/A self __name__ N/A N/A N/A AttributeError N/A N/A N/A RuntimeError N/A no object bound to %s N/A self __name__ N/A __dict__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self _get_current_object __dict__ N/A N/A N/A RuntimeError N/A N/A N/A AttributeError __dict__ N/A property __repr__ N/A N/A self N/A N/A N/A N/A N/A obj N/A N/A self _get_current_object N/A N/A N/A RuntimeError N/A N/A N/A <%s unbound> N/A N/A self __class__ __name__ N/A N/A repr obj N/A __nonzero__ N/A N/A self N/A N/A N/A N/A N/A N/A bool N/A N/A self _get_current_object N/A N/A N/A RuntimeError N/A N/A False N/A __unicode__ N/A N/A self N/A N/A N/A N/A N/A N/A unicode N/A N/A self _get_current_object N/A N/A N/A RuntimeError N/A N/A N/A repr self N/A __dir__ N/A N/A self N/A N/A N/A N/A N/A N/A dir N/A N/A self _get_current_object N/A N/A N/A RuntimeError N/A N/A N/A N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name __members__ N/A N/A N/A dir N/A N/A self _get_current_object N/A N/A getattr N/A N/A self _get_current_object name N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A N/A self _get_current_object N/A key value N/A __delitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self _get_current_object N/A key N/A __setslice__ N/A N/A self i j seq N/A N/A N/A N/A N/A N/A self _get_current_object N/A i j seq N/A __delslice__ N/A N/A self i j N/A N/A N/A N/A N/A N/A self _get_current_object N/A i j N/A N/A __setattr__ N/A N/A N/A x n v N/A N/A setattr N/A N/A x _get_current_object n v N/A __delattr__ N/A N/A N/A x n N/A N/A delattr N/A N/A x _get_current_object n N/A __str__ N/A N/A N/A x N/A N/A str N/A N/A x _get_current_object N/A __lt__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __le__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __eq__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __ne__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __gt__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __ge__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __cmp__ N/A N/A N/A x o N/A N/A cmp N/A N/A x _get_current_object o N/A __hash__ N/A N/A N/A x N/A N/A hash N/A N/A x _get_current_object N/A __call__ N/A N/A N/A x N/A a kw N/A N/A N/A x _get_current_object a kw N/A __len__ N/A N/A N/A x N/A N/A len N/A N/A x _get_current_object N/A __getitem__ N/A N/A N/A x i N/A N/A N/A N/A x _get_current_object N/A i N/A __iter__ N/A N/A N/A x N/A N/A iter N/A N/A x _get_current_object N/A __contains__ N/A N/A N/A x i N/A N/A i N/A N/A x _get_current_object N/A __getslice__ N/A N/A N/A x i j N/A N/A N/A N/A x _get_current_object N/A i j N/A __add__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __sub__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __mul__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __floordiv__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __mod__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __divmod__ N/A N/A N/A x o N/A N/A N/A N/A N/A x _get_current_object __divmod__ o N/A __pow__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __lshift__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __rshift__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __and__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __xor__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __or__ N/A N/A N/A x o N/A N/A N/A N/A x _get_current_object o N/A __div__ N/A N/A N/A x o N/A N/A N/A N/A N/A x _get_current_object __div__ o N/A __truediv__ N/A N/A N/A x o N/A N/A N/A N/A N/A x _get_current_object __truediv__ o N/A __neg__ N/A N/A N/A x N/A N/A N/A N/A x _get_current_object N/A __pos__ N/A N/A N/A x N/A N/A N/A N/A x _get_current_object N/A __abs__ N/A N/A N/A x N/A N/A abs N/A N/A x _get_current_object N/A __invert__ N/A N/A N/A x N/A N/A N/A N/A x _get_current_object N/A __complex__ N/A N/A N/A x N/A N/A complex N/A N/A x _get_current_object N/A __int__ N/A N/A N/A x N/A N/A int N/A N/A x _get_current_object N/A __long__ N/A N/A N/A x N/A N/A long N/A N/A x _get_current_object N/A __float__ N/A N/A N/A x N/A N/A float N/A N/A x _get_current_object N/A __oct__ N/A N/A N/A x N/A N/A oct N/A N/A x _get_current_object N/A __hex__ N/A N/A N/A x N/A N/A hex N/A N/A x _get_current_object N/A __index__ N/A N/A N/A x N/A N/A N/A N/A N/A x _get_current_object __index__ N/A __coerce__ N/A N/A N/A x o N/A N/A N/A x __coerce__ x o N/A __enter__ N/A N/A N/A x N/A N/A N/A x __enter__ N/A __exit__ N/A N/A N/A x N/A a kw N/A N/A x __exit__ a kw N/A