class documentation
class FilteredScript(CGIScript): (source)
Constructor: FilteredScript(filename, registry, reactor)
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.
Method | run |
Run a script through the filter executable. |
Instance Variable | filter |
The absolute path to the executable. |
Inherited from CGIScript
:
Method | __init__ |
Initialize, with the name of a CGI script file. |
Method | render |
Do various things to conform to the CGI specification. |
Class Variable | is |
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. |
Instance Variable | filename |
Undocumented |
Instance Variable | _reactor |
Undocumented |
Inherited from Resource
(via CGIScript
):
Method | del |
Undocumented |
Method | get |
Retrieve a 'child' resource from me. |
Method | get |
Deprecated in favor of getChildForRequest . |
Method | get |
Retrieve a static or dynamically generated child resource from me. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | put |
Register a static child. |
Method | really |
Undocumented |
Method | render_ |
Default handling of HEAD method. |
Class Variable | allowed |
Undocumented |
Class Variable | server |
Undocumented |
Instance Variable | children |
Undocumented |
overrides
twisted.web.twcgi.CGIScript.runProcess
Run a script through the filter executable.
Parameters | |
env:A dict of str , or None | 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. |
request:twisted.web.http.Request | An HTTP request. |
qargs:A list of str | The command line arguments to pass to the process that will get spawned. |