![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | Reset |
def | Init |
def | CloneRequestEnvironment |
def | Clear |
Public Attributes | |
errors | |
environ | |
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.
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.