Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.support.werkzeug.routing.RequestRedirect Class Reference
Inheritance diagram for MoinMoin.support.werkzeug.routing.RequestRedirect:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.werkzeug.routing.RequestRedirect:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_response

Public Attributes

 new_url

Static Public Attributes

int code = 301

Detailed Description

Raise if the map requests a redirect. This is for example the case if
`strict_slashes` are activated and an url that requires a leading slash.

The attribute `new_url` contains the absolute destination url.

Definition at line 178 of file routing.py.


Constructor & Destructor Documentation

Definition at line 186 of file routing.py.

00186 
00187     def __init__(self, new_url):
00188         RoutingException.__init__(self, new_url)
00189         self.new_url = new_url


Member Function Documentation

Definition at line 190 of file routing.py.

00190 
00191     def get_response(self, environ):
00192         return redirect(self.new_url, 301)
00193 

Here is the call graph for this function:


Member Data Documentation

Definition at line 184 of file routing.py.

Definition at line 188 of file routing.py.


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