2004-12-02 | paulb | raw annotate files changeset graph | [project @ 2004-12-02 16:39:58 by paulb] Changed the example WSGI environment to the run_with_cgi function provided in PEP 333 (since wsgiServer seemed to have issues with request processing, particularly POST methods). |
1 #!/usr/bin/env python 2 3 # NOTE: Path manipulation requires manual customisation. 4 5 import sys 6 sys.path.append("/home/paulb/Software/Python/WebStack") 7 sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") 8 9 from WebStack.Adapters import WSGI 10 from Form import FormResource 11 from wsgi_cgi import run_with_cgi 12 13 # Special magic incantation. 14 15 handler = WSGI.WSGIAdapter(FormResource()) 16 run_with_cgi(handler) 17 18 # vim: tabstop=4 expandtab shiftwidth=4