twisted.web.twcgi.FilteredScript(CGIScript)
class documentationtwisted.web.twcgi
View Source
(View In Hierarchy)
I am a special version of a CGI script, that uses a specific executable.
This is useful for interfacing with other scripting languages that
adhere to the CGI standard. My filter
attribute specifies what
executable to run, and my filename
init parameter describes
which script to pass to the first argument of that script.
To customize me for a particular location of a CGI interpreter, override
filter
.
Instance Variable | filter | The absolute path to the executable. (type: str ) |
Method | runProcess | Run a script through the filter executable. |
Inherited from Resource (via CGIScript):
Method | listStaticNames | Undocumented |
Method | listStaticEntities | Undocumented |
Method | listNames | Undocumented |
Method | listEntities | Undocumented |
Method | listDynamicNames | Undocumented |
Method | listDynamicEntities | Undocumented |
Method | getStaticEntity | Undocumented |
Method | getDynamicEntity | Undocumented |
Method | delEntity | Undocumented |
Method | reallyPutEntity | Undocumented |
Method | getChild | Retrieve a 'child' resource from me. |
Method | getChildWithDefault | Retrieve a static or dynamically generated child resource from me. |
Method | getChildForRequest | Undocumented |
Method | putChild | Register a static child. |
Method | render_HEAD | Default handling of HEAD method. |
Inherited from Resource (via CGIScript):
Method | listStaticNames | Undocumented |
Method | listStaticEntities | Undocumented |
Method | listNames | Undocumented |
Method | listEntities | Undocumented |
Method | listDynamicNames | Undocumented |
Method | listDynamicEntities | Undocumented |
Method | getStaticEntity | Undocumented |
Method | getDynamicEntity | Undocumented |
Method | delEntity | Undocumented |
Method | reallyPutEntity | Undocumented |
Method | getChild | Retrieve a 'child' resource from me. |
Method | getChildWithDefault | Retrieve a static or dynamically generated child resource from me. |
Method | getChildForRequest | Undocumented |
Method | putChild | Register a static child. |
Method | render_HEAD | Default handling of HEAD method. |
Run a script through the filter
executable.
Parameters | env | The environment variables to pass to the process that will get spawned. See
twisted.internet.interfaces.IReactorProcess.spawnProcess
for more information about environments and process creation. (type: A dict
of str ,
or None ) |
request | An HTTP request. (type: twisted.web.http.Request ) | |
qargs | The command line arguments to pass to the process that will get spawned. (type: A list
of str ) |