Package aquarium :: Package wsadaptor :: Module CGIAdaptor :: Class CGIAdaptor
[show private | hide private]
[frames | no frames]

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.

Method Details

getCgiEnv(self)

Return CGI-like environmental variables.

Overrides:
aquarium.wsadaptor.WebServerAdaptor.WebServerAdaptor.getCgiEnv

getForm(self)

Instantiate some cgi.FieldStorage and return the instance.

Overrides:
aquarium.wsadaptor.WebServerAdaptor.WebServerAdaptor.getForm

Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net