paulb@307 | 1 | #!/usr/bin/env python |
paulb@307 | 2 | |
paulb@307 | 3 | # NOTE: Path manipulation requires manual customisation. |
paulb@307 | 4 | |
paulb@307 | 5 | import sys |
paulb@307 | 6 | sys.path.append("/home/paulb/Software/Python/WebStack") |
paulb@307 | 7 | sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") |
paulb@307 | 8 | |
paulb@307 | 9 | from WebStack.Adapters import WSGI |
paulb@307 | 10 | from Calendar import DirectoryResource |
paulb@307 | 11 | from wsgi_cgi import run_with_cgi |
paulb@307 | 12 | |
paulb@307 | 13 | # Special magic incantation. |
paulb@307 | 14 | |
paulb@307 | 15 | handler = WSGI.WSGIAdapter(DirectoryResource()) |
paulb@307 | 16 | run_with_cgi(handler) |
paulb@307 | 17 | |
paulb@307 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |