Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Num ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr body Return AttributeLoad AttributeLoad NameLoad attr attr orelse Return AttributeLoad Call NameLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If BoolOpOr CompareLt NameLoad Num CompareGtE NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad orelse If AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Return Dict Str NameLoad ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Return Dict Str Num Assign NameStore NameLoad TryFinally body TryExcept body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Return Dict Str Num finalbody If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Num For NameStore SubscriptLoad NameLoad Slice Num body If Call NameLoad NameLoad Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad Call NameLoad NameLoad Str AugAssignAdd NameStore BinOpAdd Str NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse If NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Lambda arguments args NameParam defaults NameLoad
N/A N/A WSGI server interface to Python runtime.

WSGI-compliant interface between the Python runtime and user-provided Python
code.
 N/A logging N/A sys N/A types google.appengine runtime google.appengine.api lib_config N/A _DEADLINE_DURING_LOADING 22 Error N/A Exception N/A N/A N/A InvalidResponseError N/A Error N/A N/A An error indicating that the response is invalid. N/A N/A _GetTypeName N/A N/A x N/A N/A N/A Returns a user-friendly name descriping the given object's type. N/A N/A N/A type x N/A types InstanceType N/A N/A N/A N/A x __class__ __name__ N/A N/A N/A N/A type x __name__ N/A WsgiRequest N/A object N/A N/A A single WSGI request. __init__ N/A N/A self environ handler_name url post_data error N/A N/A N/A Creates a single WSGI request.

    Creates a request for handler_name in the form 'path.to.handler' for url
    with the environment contained in environ.

    Args:
      environ: A dict containing the environ for this request (e.g. like from
          os.environ).
      handler_name: A str containing the user-specified handler to use for this
          request as specified in the script field of a handler in app.yaml
          using the Python dot notation; e.g. 'package.module.application'.
      url: An urlparse.SplitResult instance containing the request url.
      post_data: A stream containing the post data for this request.
      error: A stream into which errors are to be written.
     N/A N/A self _handler handler_name N/A N/A self _status 500 N/A N/A self _response_headers N/A N/A N/A self _started_handling False N/A N/A self _body N/A N/A N/A self _written_body N/A N/A N/A environ N/A wsgi.multiprocess True N/A N/A environ N/A wsgi.run_once False N/A N/A environ N/A wsgi.version N/A 1 0 N/A N/A N/A environ setdefault wsgi.multithread False N/A N/A self _error error N/A N/A environ N/A wsgi.url_scheme N/A url scheme N/A N/A environ N/A wsgi.input post_data N/A N/A environ N/A wsgi.errors N/A self _error N/A N/A self _environ environ N/A _Write N/A N/A self body_data N/A N/A N/A Writes some body_data to the response.

    Args:
      body_data: data to be written.

    Raises:
      InvalidResponseError: body_data is not a str.
     N/A N/A N/A isinstance body_data str N/A N/A N/A InvalidResponseError N/A body_data must be a str, got %r N/A _GetTypeName body_data N/A N/A N/A N/A self _written_body append body_data N/A _StartResponse N/A N/A self status response_headers exc_info N/A None N/A N/A A PEP 333 start_response callable.

    Implements the start_response behaviour of PEP 333. Sets the status code and
    response headers as provided. If exc_info is not None, then the previously
    provided status and response headers are replaced; this implementation
    buffers the complete response so valid use of exc_info never raises an
    exception.  Otherwise, _StartResponse may only be called once.

    Args:
      status: A string containing the status code and status string.
      response_headers: a list of pairs representing header keys and values.
      exc_info: exception info as obtained from sys.exc_info().

    Returns:
      A Write method as per PEP 333.

    Raises:
      InvalidResponseError: The arguments passed are invalid.
     N/A N/A N/A isinstance status str N/A N/A N/A InvalidResponseError N/A status must be a str, got %r (%r) N/A N/A _GetTypeName status status N/A N/A status N/A N/A N/A InvalidResponseError status must not be empty N/A N/A N/A isinstance response_headers list N/A N/A N/A InvalidResponseError N/A response_headers must be a list, got %r N/A _GetTypeName response_headers N/A header response_headers N/A N/A N/A N/A isinstance header tuple N/A N/A N/A InvalidResponseError N/A response_headers items must be tuple, got %r N/A _GetTypeName header N/A N/A N/A len header 2 N/A N/A N/A InvalidResponseError N/A header tuples must have length 2, actual length %d N/A len header N/A N/A name value header N/A N/A N/A isinstance name str N/A N/A N/A InvalidResponseError N/A header names must be str, got %r (%r) N/A N/A _GetTypeName name name N/A N/A N/A isinstance value str N/A N/A N/A InvalidResponseError N/A header values must be str, got %r (%r) for %r N/A N/A _GetTypeName value value name N/A N/A N/A status_number N/A int N/A N/A N/A status split N/A 0 N/A N/A N/A ValueError N/A N/A N/A InvalidResponseError N/A status code %r is not a number status N/A N/A N/A status_number 200 N/A status_number 600 N/A N/A N/A InvalidResponseError N/A status code must be in the range [200,600), got %d status_number N/A N/A exc_info None N/A N/A N/A self _status status_number N/A N/A self _response_headers response_headers N/A exc_info None N/A N/A N/A self _started_handling N/A N/A N/A InvalidResponseError _StartResponse may only be called once without exc_info N/A N/A N/A self _status status_number N/A N/A self _response_headers response_headers N/A N/A self _started_handling True N/A N/A self _body N/A N/A N/A self _written_body N/A N/A N/A self _Write N/A Handle N/A N/A self N/A N/A N/A Handles the request represented by the WsgiRequest object.

    Loads the handler from the handler name provided. Calls the handler with the
    environ. Any exceptions in loading the user handler and executing it are
    caught and logged.

    Returns:
      A dict containing:
        error: App Engine error code. 0 for OK, 1 for error.
        response_code: HTTP response code.
        headers: A list of tuples (key, value) of HTTP headers.
        body: A str of the body of the response
     N/A N/A N/A handler N/A N/A _config_handle add_wsgi_middleware N/A N/A self _LoadHandler N/A N/A N/A N/A runtime DeadlineExceededError N/A N/A exc_info N/A N/A sys exc_info N/A N/A N/A N/A N/A logging error exc_info exc_info N/A N/A N/A N/A runtime DeadlineExceededError N/A N/A N/A N/A logging exception Deadline exception occurred while logging a deadline exception. N/A N/A N/A logging error Original exception: exc_info exc_info N/A N/A error _DEADLINE_DURING_LOADING N/A N/A N/A N/A N/A logging exception N/A N/A error 1 N/A result None N/A N/A N/A N/A N/A result N/A handler N/A dict N/A self _environ N/A self _StartResponse N/A chunk result N/A N/A N/A N/A isinstance chunk str N/A N/A N/A InvalidResponseError handler must return an iterable of str N/A N/A N/A N/A self _body append chunk N/A body N/A N/A join N/A N/A self _written_body N/A self _body N/A N/A response_code headers body N/A self _status N/A self _response_headers body N/A N/A N/A N/A N/A N/A logging exception N/A N/A error 1 N/A N/A N/A hasattr result close N/A N/A N/A N/A result close N/A _LoadHandler N/A N/A self N/A N/A N/A Find and return a Python object with name handler_name.

    Find and return a Python object specified by self._handler. Packages and
    modules are imported as necessary. If successful, the filename of the module
    is inserted into environ with key 'PATH_TRANSLATED' if it has one.

    Returns:
      A Python object.

    Raises:
      ImportError: An element of the path cannot be resolved.
     N/A path N/A N/A N/A self _handler split . N/A handler N/A __import__ N/A path N/A 0 N/A is_parent_package True N/A cumulative_path N/A path N/A 0 N/A name N/A path N/A 1 N/A N/A N/A hasattr handler __file__ N/A N/A N/A N/A self _environ N/A PATH_TRANSLATED N/A handler __file__ N/A is_parent_package N/A is_parent_package N/A hasattr handler __path__ N/A cumulative_path N/A . name N/A N/A hasattr handler name N/A N/A handler N/A getattr handler name N/A N/A is_parent_package N/A N/A N/A __import__ cumulative_path N/A handler N/A getattr handler name N/A N/A N/A ImportError N/A %s has no attribute %s N/A handler name N/A handler N/A N/A HandleRequest N/A N/A environ handler_name url post_data error N/A N/A N/A Handle a single WSGI request.

  Creates a request for handler_name in the form 'path.to.handler' for url with
  the environment contained in environ.

  Args:
    environ: A dict containing the environ for this request (e.g. like from
        os.environ).
    handler_name: A str containing the user-specified handler to use for this
        request as specified in the script field of a handler in app.yaml using
        the Python dot notation; e.g. 'package.module.application'.
    url: An urlparse.SplitResult instance containing the request url.
    post_data: A stream containing the post data for this request.
    error: A stream into which errors are to be written.

  Returns:
    A dict containing:
      error: App Engine error code. 0 for OK, 1 for error.
      response_code: HTTP response code.
      headers: A list of tuples (key, value) of HTTP headers.
      body: A str of the body of the response
   N/A N/A N/A N/A WsgiRequest environ handler_name url post_data error Handle N/A N/A _config_handle N/A N/A lib_config register webapp N/A add_wsgi_middleware N/A N/A N/A app N/A app