1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/WSGI/SessionsHandler.py Thu Dec 02 16:40:09 2004 +0000
1.3 @@ -0,0 +1,18 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +# NOTE: Path manipulation requires manual customisation.
1.7 +
1.8 +import sys
1.9 +sys.path.append("/home/paulb/Software/Python/WebStack")
1.10 +sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
1.11 +
1.12 +from WebStack.Adapters import WSGI
1.13 +from Sessions import SessionsResource
1.14 +from wsgi_cgi import run_with_cgi
1.15 +
1.16 +# Special magic incantation.
1.17 +
1.18 +handler = WSGI.WSGIAdapter(SessionsResource())
1.19 +run_with_cgi(handler)
1.20 +
1.21 +# vim: tabstop=4 expandtab shiftwidth=4