![]() |
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 | handle_authorization |
![]() | |
def | __init__ |
def | match |
def | handle_authorization |
def | handle |
Abstract base class for handlers configured by the user. This provides common functionality for handlers that need to obey authorization restrictions.
def google.appengine.tools.devappserver2.url_handler.UserConfiguredURLHandler.__init__ | ( | self, | |
url_map, | |||
url_pattern | |||
) |
Initializer for UserConfiguredURLHandler. Args: url_map: An appinfo.URLMap instance containing the configuration for this handler. url_pattern: A re.RegexObject that matches URLs that should be handled by this handler. It may also optionally bind groups.
def google.appengine.tools.devappserver2.url_handler.UserConfiguredURLHandler.handle_authorization | ( | self, | |
environ, | |||
start_response | |||
) |
Handles the response if the user is not authorized to access this URL. The authorization check is based on the 'login' setting for this handler, configured by the supplied url_map. Args: environ: An environ dict for the current request as defined in PEP-333. start_response: A function with semantics defined in PEP-333. Returns: An iterable over strings containing the body of an HTTP response, if the authorization check fails or the login UI must be displayed. None if the user is authorized to access the resource.