Class CGIAdaptor
WebServerAdaptor --+
|
CGIAdaptor
This subclass of WebServerAdaptor is for CGI environments.
Here is a minimal CGI 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 aquarium.util.Aquarium import Aquarium
from aquarium.wsadaptor.CGIAdaptor import CGIAdaptor
Aquarium(CGIAdaptor())()
The following urlscheme modules can be used with this Web server adaptor:
QueryParameters, PathInfo.
| Method Summary |
| |
getCgiEnv(self)
Return CGI-like environmental variables. |
| |
getForm(self)
Instantiate some cgi.FieldStorage and return the instance. |
| Inherited from WebServerAdaptor |
| |
setResponseCode(self,
code,
msg)
Set the Web server response code and message. |
| |
write(self,
s)
Output a string. |
| |
writeHeaders(self,
headersList)
Output a list of header strings. |