App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.tools.devappserver2.url_handler.UserConfiguredURLHandler Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.url_handler.UserConfiguredURLHandler:
google.appengine.tools.devappserver2.url_handler.URLHandler google.appengine.tools.devappserver2.module._ScriptHandler google.appengine.tools.devappserver2.static_files_handler.StaticContentHandler google.appengine.tools.devappserver2.static_files_handler.StaticDirHandler google.appengine.tools.devappserver2.static_files_handler.StaticFilesHandler

Public Member Functions

def __init__
 
def handle_authorization
 
- Public Member Functions inherited from google.appengine.tools.devappserver2.url_handler.URLHandler
def __init__
 
def match
 
def handle_authorization
 
def handle
 

Detailed Description

Abstract base class for handlers configured by the user.

This provides common functionality for handlers that need to obey
authorization restrictions.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

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