WebStack

Annotated examples/WSGI/CalendarApp.py

752:7a9ee094a4b7
2008-02-02 paulb [project @ 2008-02-02 23:35:36 by paulb] Removed local default encoding attributes. Improved the SimpleMap resource documentation and initialisation features.
paulb@668 1
#!/usr/bin/env python
paulb@668 2
paulb@668 3
# Uncomment and adjust the paths below if WebStack is not installed somewhere
paulb@668 4
# on the PYTHONPATH.
paulb@668 5
paulb@668 6
#import sys
paulb@668 7
#sys.path.append("/home/paulb/Software/Python/WebStack")
paulb@668 8
#sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
paulb@668 9
paulb@708 10
from WebStack.Adapters.WSGI import deploy_with_wsgiref as deploy
paulb@668 11
from Calendar import CalendarResource
paulb@668 12
paulb@668 13
# Choose or customise one of the following if the example fails.
paulb@668 14
paulb@718 15
deploy(CalendarResource(), handle_errors=0)
paulb@718 16
#deploy(CalendarResource("iso-8859-1"), handle_errors=0)
paulb@668 17
paulb@668 18
# vim: tabstop=4 expandtab shiftwidth=4