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

Module aquarium.wsadaptor.WSGIAdaptor

This is a WSGI adaptor for Aquarium.


Classes
WSGIAdaptor This is a WSGI adaptor for Aquarium.

Function Summary
  handler(environ, start_response)
This is WSGI callable that can be used with WSGI server.

Function Details

handler(environ, start_response)

This is WSGI callable that can be used with WSGI server.

Example:

#!/usr/bin/env python

# Set your packagePath and/or sys.path.

from aquarium.wsadaptor.WSGIAdaptor import handler

# Now you can pass "handler" to your favorite WSGI server.

If you need to use your own subclass of aquarium.util.Aquarium, do this:

from aquarium.wsadaptor import WSGIAdaptor
WSGIAdaptor.Aquarium = SpecialAquariumSubclass
from WSGIAdaptor import WSGIApp

...as before...

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