class documentation
class _UnsafeErrorPage(_UnsafeErrorPageBase): (source)
Constructor: _UnsafeErrorPage(status, brief, detail)
_UnsafeErrorPage
, publicly available via the deprecated alias ErrorPage, is a resource which responds with a particular (parameterized) status and a body consisting of HTML containing some descriptive text. This is useful for rendering simple error pages.
Deprecated in Twisted 22.10.0 because it permits HTML injection; use twisted.web.pages.errorPage
instead.
Method | __init__ |
Initialize. |
Inherited from _UnsafeErrorPageBase
:
Method | get |
Retrieve a 'child' resource from me. |
Method | render |
Render a given resource. See IResource 's render method. |
Instance Variable | brief |
A short string which will be included in the response body as the page title. |
Instance Variable | code |
An integer status code which will be used for the response. |
Instance Variable | detail |
A longer string which will be included in the response body. |
Instance Variable | template |
A native string which will have a dictionary interpolated into it to generate the response body. The dictionary has the following keys: |
Inherited from Resource
(via _UnsafeErrorPageBase
):
Method | del |
Undocumented |
Method | get |
Deprecated in favor of getChildForRequest . |
Method | get |
Retrieve a static or dynamically generated child resource from me. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | put |
Register a static child. |
Method | really |
Undocumented |
Method | render_ |
Default handling of HEAD method. |
Class Variable | allowed |
Undocumented |
Class Variable | is |
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. |
Class Variable | server |
Undocumented |
Instance Variable | children |
Undocumented |