Part of twisted.web2.plugin View Source View In Hierarchy
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 25 | Method | __init__ | A plugin resource atleast has to accept any arguments given to it, |
| 29 | Method | locateChild | Locate another object which can be adapted to IResource. |
| 32 | Method | render | Subclasses should implement this method to do page rendering. |
Inherited from Resource (via PluginResource):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 173 | Method | child_ | This method locates a child with a trailing "/"
in the URL.
|
| 182 | Method | putChild | Register a static child. |
| 197 | Method | http_GET | Undocumented |
Inherited from RenderMixin (via PluginResource, Resource):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 19 | Method | allowedMethods | |
| 27 | Method | checkPreconditions | Checks all preconditions imposed by this resource upon a request made |
| 53 | Method | renderHTTP | See iweb.IResource.renderHTTP. |
| 89 | Method | http_OPTIONS | Respond to a OPTIONS request. |
| 99 | Method | http_TRACE | Respond to a TRACE request. |
| 107 | Method | http_HEAD | Respond to a HEAD request. |
Inherited from RenderMixin (via LeafResource):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 19 | Method | allowedMethods | |
| 27 | Method | checkPreconditions | Checks all preconditions imposed by this resource upon a request made |
| 53 | Method | renderHTTP | See iweb.IResource.renderHTTP. |
| 89 | Method | http_OPTIONS | Respond to a OPTIONS request. |
| 99 | Method | http_TRACE | Respond to a TRACE request. |
| 107 | Method | http_HEAD | Respond to a HEAD request. |
| 115 | Method | http_GET | Respond to a GET request. |
| Returns | A 2-tuple of (resource, remaining-path-segments), or a deferred which will fire the above. Causes the object publishing machinery to continue on with specified resource and segments, calling the appropriate method on the specified resource. If you return (self, server.StopTraversal), this instructs web2 to immediately stop the lookup stage, and switch to the rendering stage, leaving the remaining path alone for your render function to handle. | |
| Parameters | request | the request to process. |
| Returns | an object adaptable to iweb.IResponse. | |