Class t.w.p.TestResource(PluginResource, resource.LeafResource):

Part of twisted.web2.plugin View Source View In Hierarchy

No class docstring
Method __init__ A plugin resource atleast has to accept any arguments given to it,
Method locateChild Locates a child resource of this resource.
Method render Subclasses should implement this method to do page rendering.

Inherited from Resource (via PluginResource):

Method child_ This method locates a child with a trailing "/" in the URL.
Method putChild Register a static child.
Method http_GET Respond to a GET request.

Inherited from RenderMixin (via PluginResource, Resource):

Method allowedMethods
Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
Method renderHTTP See iweb.IResource.renderHTTP.
Method http_OPTIONS Respond to a OPTIONS request.
Method http_TRACE Respond to a TRACE request.
Method http_HEAD Respond to a HEAD request.

Inherited from RenderMixin (via LeafResource):

Method allowedMethods
Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
Method renderHTTP See iweb.IResource.renderHTTP.
Method http_OPTIONS Respond to a OPTIONS request.
Method http_TRACE Respond to a TRACE request.
Method http_HEAD Respond to a HEAD request.
Method http_GET Respond to a GET request.
def __init__(self, foo=None, bar=None): (source)
A plugin resource atleast has to accept any arguments given to it, but it doesn't have to do anything with it, this is dumb I know.
def locateChild(self, req, segments): (source)
Locates a child resource of this resource.
Parametersrequestthe request to process.
segmentsa sequence of URL path segments.
Returnsa tuple of (child, segments) containing the child of this resource which matches one or more of the given segments in sequence, and a list of remaining segments.
def render(self, req): (source)
Subclasses should implement this method to do page rendering. See http_GET.
Parametersrequestthe request to process.
Returnsan object adaptable to iweb.IResponse.
API Documentation for twisted, generated by pydoctor.