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