Module Expr Str Assign NameStore Str Import alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Yield NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad AttributeLoad NameLoad attr Str body Return AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list decorator_list
N/A N/A gevent-safe thread-local context as a mixin N/A __author__ Dave Foster <dfoster@asascience.com> N/A threading contextlib contextmanager LocalContextMixin N/A object N/A N/A _lcm_context None __init__ N/A N/A self N/A N/A N/A N/A self _lcm_context N/A N/A threading local N/A push_context N/A N/A self context N/A N/A N/A 
        Context Manager based context method.
        To use:
        with obj.push_context(context):
            # your operations while context is current
        # context resets to prior state here
         N/A cur_ctx N/A N/A self set_context context N/A N/A N/A N/A context N/A N/A N/A N/A self set_context cur_ctx N/A contextmanager set_context N/A N/A self context N/A N/A N/A 
        Sets the "context" of this class.

        Used by Process level Endpoints (ProcessRPCClient, ProcessRPCServer) for propagating call context
        through service calls.

        @returns    The current context prior to this call. Should be used to push state.
         N/A cur_ctx N/A N/A self get_context N/A N/A N/A self _lcm_context ctx context N/A cur_ctx N/A get_context N/A N/A self N/A N/A N/A 
        Gets the current "context" of this class.

        Used by Process level Endpoints (ProcessRPCClient, ProcessRPCServer) for propagating call context
        through service calls.

        If not set, returns None.
         N/A N/A hasattr N/A self _lcm_context ctx N/A N/A N/A N/A self _lcm_context ctx N/A None N/A N/A