Part of twisted.web View Source
Function | redirectTo | Generate a redirect to the given location. |
Class | Redirect | Undocumented |
Class | ChildRedirector | Undocumented |
Class | ParentRedirect | I redirect to URLPath.here(). |
Class | DeferredResource | I wrap up a Deferred that will eventually result in a Resource object. |
Function | htmlrepr | Undocumented |
Function | saferepr | Undocumented |
Function | htmlUnknown | Undocumented |
Function | htmlDict | Undocumented |
Function | htmlList | Undocumented |
Function | htmlInst | Undocumented |
Function | htmlString | Undocumented |
Function | htmlFunc | Undocumented |
Function | htmlIndent | Strip trailing whitespace, escape HTML entitities and expand indentation whitespace to HTML non-breaking space. |
Class | FailureElement | FailureElement
is an IRenderable which
can render detailed information about a Failure . |
Function | formatFailure | Construct an HTML representation of the given failure. |
Class | _SourceLineElement | _SourceLineElement
is an IRenderable which
can render a single line of source code. |
Class | _SourceFragmentElement | _SourceFragmentElement
is an IRenderable which
can render several lines of source code near the line number of a
particular frame object. |
Class | _FrameElement | _FrameElement
is an IRenderable which
can render details about one frame from a Failure . |
Class | _StackElement | _StackElement
renders an IRenderable which
can render a list of frames. |
Parameters | URL | A str giving the location to which to redirect. (type: str ) |
request | The request object to use to generate the redirect. (type: IRequest provider) | |
Returns | A str containing HTML which tries to convince the client agent
to visit the new location even if it doesn't respect the FOUND
response code. This is intended to be returned from a render method, eg:
def render_GET(self, request): return redirectTo("http://example.com/", request) | |
Raises | TypeError | If the type of URL a unicode instead of
str . |
Parameters | snippetLine | The line of input to indent. (type: bytes ) |
Returns | The escaped and indented line. |
Consider using FailureElement
instead.
Returns | A string containing the HTML representation of the given failure. (type: str ) |