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

Class WSGIAdaptor

WebServerAdaptor --+
                   |
                  WSGIAdaptor


This is a WSGI adaptor for Aquarium.

The following properties are used:

environ
This is the WSGI context object.
status
This is the HTTP response (code, msg).
wfile
Output will be buffered here.

Method Summary
  __init__(self, environ)
  getCgiEnv(self)
Return CGI-like environmental variables.
  getForm(self)
Instantiate some cgi.FieldStorage and return the instance.
  setResponseCode(self, code, msg)
Set the Web server response code and message.
  write(self, s)
Output a string.
  writeHeaders(self, headers)

Method Details

getCgiEnv(self)

Return CGI-like environmental variables.

Overrides:
aquarium.wsadaptor.WebServerAdaptor.WebServerAdaptor.getCgiEnv (inherited documentation)

getForm(self)

Instantiate some cgi.FieldStorage and return the instance.

Overrides:
aquarium.wsadaptor.WebServerAdaptor.WebServerAdaptor.getForm (inherited documentation)

setResponseCode(self, code=200, msg='Script output follows')

Set the Web server response code and message.

Keword arguments:

code

The default means "OK".

msg

The default is "Script output follows".

This base class does nothing.

Overrides:
aquarium.wsadaptor.WebServerAdaptor.WebServerAdaptor.setResponseCode (inherited documentation)

write(self, s)

Output a string.

This base class simply uses print.

Overrides:
aquarium.wsadaptor.WebServerAdaptor.WebServerAdaptor.write (inherited documentation)

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