![]() |
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 | __call__ |
def | get_registered_handler_by_name |
Public Attributes | |
current_request_args | |
Static Public Attributes | |
REQUEST_CLASS = Request | |
RESPONSE_CLASS = Response | |
Wraps a set of webapp RequestHandlers in a WSGI-compatible application. To use this class, pass a list of (URI regular expression, RequestHandler) pairs to the constructor, and pass the class instance to a WSGI handler. See the example in the module comments for details. The URL mapping is first-match based on the list ordering.
def google.appengine.ext.webapp._webapp25.WSGIApplication.__init__ | ( | self, | |
url_mapping, | |||
debug = False |
|||
) |
Initializes this application with the given URL mapping. Args: url_mapping: list of (URI regular expression, RequestHandler) pairs (e.g., [('/', ReqHan)]) debug: if true, we send Python stack traces to the browser on errors
def google.appengine.ext.webapp._webapp25.WSGIApplication.__call__ | ( | self, | |
environ, | |||
start_response | |||
) |
Called by WSGI when a request comes in.
def google.appengine.ext.webapp._webapp25.WSGIApplication.get_registered_handler_by_name | ( | self, | |
handler_name | |||
) |
Returns the handler given the handler's name. This uses the application's url mapping. Args: handler_name: The __name__ of a handler to return. Returns: The handler with the given name. Raises: KeyError: If the handler name is not found in the parent application.