paulb@24 | 1 | #!/usr/bin/env python |
paulb@24 | 2 | |
paulb@539 | 3 | # NOTE: Path manipulation may require manual customisation. |
paulb@24 | 4 | |
paulb@539 | 5 | import sys, os |
paulb@539 | 6 | sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common"))) |
paulb@24 | 7 | |
paulb@560 | 8 | from WebStack.Adapters.ModPython import deploy |
paulb@416 | 9 | from Calendar import CalendarResource |
paulb@24 | 10 | |
paulb@24 | 11 | # NOTE: Not sure if the resource should be maintained in a resource pool. |
paulb@493 | 12 | # Choose or customise one of the following if the example fails. |
paulb@24 | 13 | |
paulb@416 | 14 | resource = CalendarResource() |
paulb@493 | 15 | #resource = CalendarResource("iso-8859-1") |
paulb@24 | 16 | |
paulb@718 | 17 | handler, _no_authentication = deploy(resource, handle_errors=0) |
paulb@24 | 18 | |
paulb@24 | 19 | # vim: tabstop=4 expandtab shiftwidth=4 |