WebStack

examples/WSGI/CalendarHandler.py

729:00027423df81
2008-06-20 Paul Boddie Added tag rel-1-2-7 for changeset 7d381376cc00
     1 #!/usr/bin/env python     2      3 # Uncomment and adjust the paths below if WebStack is not installed somewhere     4 # on the PYTHONPATH.     5      6 #import sys     7 #sys.path.append("/home/paulb/Software/Python/WebStack")     8 #sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")     9     10 from WebStack.Adapters.WSGI import deploy_as_cgi    11 from Calendar import CalendarResource    12     13 # Choose or customise one of the following if the example fails.    14     15 deploy_as_cgi(CalendarResource(), handle_errors=0)    16 #deploy_as_cgi(CalendarResource("iso-8859-1"), handle_errors=0)    17     18 # vim: tabstop=4 expandtab shiftwidth=4