|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, new_url) |
| def | get_response (self, environ=None) |
Public Member Functions inherited from HTTPException | |
| def | __init__ (self, description=None, response=None) |
| def | wrap (cls, exception, name=None) |
| def | name (self) |
| def | get_description (self, environ=None) |
| def | get_body (self, environ=None) |
| def | get_headers (self, environ=None) |
| def | __call__ (self, environ, start_response) |
| def | __str__ (self) |
| def | __repr__ (self) |
Data Fields | |
| new_url | |
Data Fields inherited from HTTPException | |
| response | |
Static Public Attributes | |
| code | |
Static Public Attributes inherited from HTTPException | |
| code | |
| 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 trailing slash. The attribute `new_url` contains the absolute destination url.
| def __init__ | ( | self, | |
| new_url | |||
| ) |
| def get_response | ( | self, | |
environ = None |
|||
| ) |
Get a response object. If one was passed to the exception
it's returned directly.
:param environ: the optional environ for the request. This
can be used to modify the response depending
on how the request looked like.
:return: a :class:`Response` object or a subclass thereof.
Reimplemented from HTTPException.
|
static |
| new_url |