Home | Trees | Index | Help |
|
---|
Package aquarium :: Package wsadaptor :: Module FastCGIAdaptor :: Class FastCGIAdaptor |
|
WebServerAdaptor
--+
|
FastCGIAdaptor
This subclass of WebServerAdaptor is for FastCGI.
To use this, you'll need to download thfcgi.py and install it into Python's site-packages directory or somewhere else in your PYTHONPATH. I can't distribute it with Aquarium because it's GPL and Aquarium's not (this is a statement of fact, not a complaint).
Here is a minimal FastCGI entry point. Naturally, you'll almost assuredly want to add code to update sys.path and packagePath before importing anything from Aquarium:
#!/usr/bin/python from thfcgi import THFCGI from aquarium.wsadaptor.FastCGIAdaptor import handler THFCGI(handler).run()
The following urlscheme modules can be used with this Web server adaptor: QueryParameters, PathInfo.
The following private variables are used:
Method Summary | |
---|---|
Accept all the arguments. | |
Return CGI-like environmental variables. | |
Instantiate some cgi.FieldStorage and return the instance. | |
Set the Web server response code and message. | |
Output a string. | |
Inherited from WebServerAdaptor | |
Output a list of header strings. |
Method Details |
---|
__init__(self,
req,
cgiEnv,
form)
|
getCgiEnv(self)Return CGI-like environmental variables. |
getForm(self)Instantiate some cgi.FieldStorage and return the instance. |
setResponseCode(self, code=200, _FastCGIAdaptor__ignored_msg='Script output follows')Set the Web server response code and message. Keword arguments:
mod_fastcgi sets the response code by using a fake "Status" header. |
write(self, s)Output a string. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 | http://epydoc.sf.net |