App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.ext.webapp._webapp25.RedirectHandler Class Reference
Inheritance diagram for google.appengine.ext.webapp._webapp25.RedirectHandler:
google.appengine.ext.webapp._webapp25.RequestHandler

Public Member Functions

def __init__
 
def get
 
- Public Member Functions inherited from google.appengine.ext.webapp._webapp25.RequestHandler
def initialize
 
def get
 
def post
 
def head
 
def options
 
def put
 
def delete
 
def trace
 
def error
 
def redirect
 
def handle_exception
 
def new_factory
 
def get_url
 

Public Attributes

 path
 
 permanent
 
- Public Attributes inherited from google.appengine.ext.webapp._webapp25.RequestHandler
 request
 
 response
 

Detailed Description

Simple redirection handler.

Easily configure URLs to redirect to alternate targets.  For example,
to configure a web application so that the root URL is always redirected
to the /home path, do:

  application = webapp.WSGIApplication(
      [('/', webapp.RedirectHandler.new_factory('/home', permanent=True)),
       ('/home', HomeHandler),
      ],
      debug=True)

Handler also useful for setting up obsolete URLs to redirect to new paths.

Constructor & Destructor Documentation

def google.appengine.ext.webapp._webapp25.RedirectHandler.__init__ (   self,
  path,
  permanent = False 
)
Constructor.

Do not use directly.  Configure using new_factory method.

Args:
  path: Path to redirect to.
  permanent: if true, we use a 301 redirect instead of a 302 redirect.

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