App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.runtime.request_environment.RequestEnvironment Class Reference
Inheritance diagram for google.appengine.runtime.request_environment.RequestEnvironment:

Public Member Functions

def __init__
 
def Reset
 
def Init
 
def CloneRequestEnvironment
 
def Clear
 

Public Attributes

 errors
 
 environ
 

Detailed Description

A thread local request environment.

A thread local request environment that provides an error stream errors and a
dict of the request environment environ as would be found in os.environ. A
single error stream is shared between threads of a single request, but each
thread accesses an independent copy of environ created when
CloneRequestEnvironment is called. A request environment of one thread can be
installed in another thread as follows:
  1. Call CloneRequestEnvironment in the first thread.
  2. Call the returned callable from the other thread.

Member Function Documentation

def google.appengine.runtime.request_environment.RequestEnvironment.Clear (   self)
Clears the thread locals.
def google.appengine.runtime.request_environment.RequestEnvironment.CloneRequestEnvironment (   self)
Returns a callable that will install the environment in another thread.

Returns:
  A callable that will duplicate the request environment of this thread in
  another thread that calls it.
def google.appengine.runtime.request_environment.RequestEnvironment.Reset (   self)
Resets the error stream and environment for this request.

The documentation for this class was generated from the following file: