Latest Version: 0.9.6.2

HTTPMovedPermanently


Attributes

a code

301

a comment

''

a detail

''

a explanation

'The resource has been moved to'

a required_headers

('location',)

a template

'%(explanation)s <a href="%(location)s">%(location)s</a>;\r\nyou should be redirected automatically.\r\n%(detail)s\r\n<!-- %(comment)s -->'

a title

'Moved Permanently'

Methods

f __call__(self, environ, start_response, exc_info=None) ...

This exception as a WSGI application

f __getitem__(...) ...

f __init__(self, detail=None, headers=None, comment=None) ...

f html(self, environ) ...

text/html representation of the exception

f location(self) ...

f make_body(self, environ, template, escfunc, comment_escfunc=None) ...

f plain(self, environ) ...

text/plain representation of the exception

f prepare_content(self, environ) ...

f relative_redirect(cls, dest_uri, environ, detail=None, headers=None, comment=None) ...

Create a redirect object with the dest_uri, which may be relative, considering it relative to the uri implied by the given environ.

f response(self, environ) ...

f wsgi_application(self, environ, start_response, exc_info=None) ...

This exception as a WSGI application

See the source for more information.

Top