twisted.web.resource.ForbiddenResource(ErrorPage) class documentationtwisted.web.resource
View Source
(View In Hierarchy)
ForbiddenResource
is a specialization of ErrorPage which
returns the FORBIDDEN HTTP response code.
| Method | __init__ | Initialize. |
Inherited from ErrorPage:
| 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:
|
| Instance Variable | code | An integer status code which will be used for the response. (type: int) |
| Instance Variable | brief | A short string which will be included in the response body as the page
title. (type: str) |
| Instance Variable | detail | A longer string which will be included in the response body. (type: str) |
| Method | render | Render a given resource. See IResource's
render method. |
| Method | getChild | Retrieve a 'child' resource from me. |
Inherited from Resource (via ErrorPage):
| Method | listStaticNames | Undocumented |
| Method | listStaticEntities | Undocumented |
| Method | listNames | Undocumented |
| Method | listEntities | Undocumented |
| Method | listDynamicNames | Undocumented |
| Method | listDynamicEntities | Undocumented |
| Method | getStaticEntity | Undocumented |
| Method | getDynamicEntity | Undocumented |
| Method | delEntity | Undocumented |
| Method | reallyPutEntity | Undocumented |
| Method | getChildWithDefault | Retrieve a static or dynamically generated child resource from me. |
| Method | getChildForRequest | Undocumented |
| Method | putChild | Register a static child. |
| Method | render_HEAD | Default handling of HEAD method. |
Initialize.