Class t.w.t.FilteredScript(CGIScript):

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

Known subclasses: twisted.web2.twcgi.PHP3Script, twisted.web2.twcgi.PHPScript

I am a special version of a CGI script, that uses a specific executable (or, the first existing executable in a list of executables).

This is useful for interfacing with other scripting languages that adhere to the CGI standard (cf. PHPScript). My 'filters' attribute specifies what executables to try to run, and my 'filename' init parameter describes which script to pass to the first argument of that script.
Method __init__ Initialize, with the name of a CGI script file.
Method render Do various things to conform to the CGI specification.

Inherited from CGIScript:

Method http_POST Undocumented

Inherited from LeafResource (via CGIScript):

Method locateChild Locate another object which can be adapted to IResource.

Inherited from RenderMixin (via CGIScript, 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, filename, filters=None): (source)
Initialize, with the name of a CGI script file.
def render(self, request): (source)

Do various things to conform to the CGI specification.

I will set up the usual slew of environment variables, then spin off a process.
API Documentation for twisted, generated by pydoctor.