paulb@242 | 1 | #!/usr/bin/env python |
paulb@242 | 2 | |
paulb@242 | 3 | # NOTE: Path manipulation requires manual customisation. |
paulb@242 | 4 | |
paulb@242 | 5 | import sys |
paulb@242 | 6 | sys.path.append("/home/paulb/Software/Python/WebStack") |
paulb@242 | 7 | sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") |
paulb@242 | 8 | |
paulb@242 | 9 | from WebStack.Adapters import ModPython |
paulb@242 | 10 | from Sessions import SessionsResource |
paulb@242 | 11 | |
paulb@242 | 12 | # NOTE: Not sure if the resource should be maintained in a resource pool. |
paulb@242 | 13 | |
paulb@242 | 14 | resource = SessionsResource() |
paulb@242 | 15 | |
paulb@242 | 16 | def handler(req): |
paulb@242 | 17 | global resource |
paulb@341 | 18 | return ModPython.respond(req, resource, handle_errors=0) |
paulb@242 | 19 | |
paulb@242 | 20 | # vim: tabstop=4 expandtab shiftwidth=4 |