Class t.w.t.CGIDirectory(resource.Resource, filepath.FilePath):

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

A directory that serves only CGI scripts (to infinite depth) and does not support directory listings.
ParameterspathnameA path to the directory that you wish to serve CGI scripts from, for example /var/www/cgi-bin/
Method __init__ Undocumented
Method locateChild Locates a child resource of this resource.
Method render Subclasses should implement this method to do page rendering.

Inherited from Resource:

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 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 FilePath:

Method __getstate__ Undocumented
Method child Undocumented
Method preauthChild Use me if `path' might have slashes in it, but you know they're safe.
Method childSearchPreauth Return my first existing child with a name in 'paths'.
Method siblingExtensionSearch Attempt to return a path with my name, given multiple possible
Method siblingExtension Undocumented
Method open Undocumented
Method restat Undocumented
Method getsize Undocumented
Method getmtime Undocumented
Method getctime Undocumented
Method getatime Undocumented
Method exists Undocumented
Method isdir Undocumented
Method isfile Undocumented
Method islink Undocumented
Method isabs Undocumented
Method listdir Undocumented
Method splitext Undocumented
Method __repr__ Undocumented
Method touch Undocumented
Method remove Undocumented
Method makedirs Undocumented
Method globChildren Assuming I am representing a directory, return a list of
Method basename Undocumented
Method dirname Undocumented
Method parent Undocumented
Method setContent Undocumented
Method __cmp__ Undocumented
Method createDirectory Undocumented
Method requireCreate Undocumented
Method create Exclusively create a file, only if this file previously did not exist.
Method temporarySibling Create a path naming a temporary sibling of this path in a secure fashion.
Method copyTo Undocumented
Method moveTo Undocumented

Inherited from _PathHelper (via FilePath):

Method getContent Undocumented
Method children Undocumented
Method walk Yield myself, then each of my children, and each of those children's
Method sibling Undocumented
Method segmentsFrom Return a list of segments between a child and its ancestor.
def __init__(self, pathname): (source)
Undocumented
def locateChild(self, request, 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, request): (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.