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/
Line # Kind Name Docs
328 Method __init__ Undocumented
332 Method locateChild Locate another object which can be adapted to IResource.
342 Method render Subclasses should implement this method to do page rendering.

Inherited from Resource:

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

Line # Kind Name Docs
84 Method __getstate__ Undocumented
90 Method child Undocumented
102 Method preauthChild Use me if `path' might have slashes in it, but you know they're safe.
113 Method childSearchPreauth Return my first existing child with a name in 'paths'.
128 Method siblingExtensionSearch Attempt to return a path with my name, given multiple possible
153 Method siblingExtension Undocumented
156 Method open Undocumented
164 Method restat Undocumented
172 Method getsize Undocumented
179 Method getmtime Undocumented
186 Method getctime Undocumented
193 Method getatime Undocumented
200 Method exists Undocumented
209 Method isdir Undocumented
218 Method isfile Undocumented
227 Method islink Undocumented
234 Method isabs Undocumented
237 Method listdir Undocumented
240 Method splitext Undocumented
243 Method __repr__ Undocumented
246 Method touch Undocumented
253 Method remove Undocumented
262 Method makedirs Undocumented
265 Method globChildren Assuming I am representing a directory, return a list of
275 Method basename Undocumented
278 Method dirname Undocumented
281 Method parent Undocumented
284 Method setContent Undocumented
291 Method getContent Undocumented
296 Method __cmp__ Undocumented
301 Method createDirectory Undocumented
304 Method requireCreate Undocumented
307 Method create Exclusively create a file, only if this file previously did not exist.
320 Method sibling Undocumented
323 Method temporarySibling Create a path naming a temporary sibling of this path in a secure fashion.
331 Method children Undocumented
334 Method walk Undocumented
343 Method copyTo Undocumented
377 Method moveTo Undocumented
def __init__(self, pathname):
Undocumented
def locateChild(self, request, segments):
Locate another object which can be adapted to IResource.
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.
def render(self, request):
Subclasses should implement this method to do page rendering. See http_GET.
Parametersrequestthe request to process.
Returnsan object adaptable to iweb.IResponse.