2009-11-27 | Paul Boddie | raw annotate files changeset graph | Changed authentication tokens to use UTF-8, not ISO-8859-1 which was presumably in use as a safe interpretation of bytes, but would not be appropriate as a target encoding for Unicode objects. Changed OpenID redirection to include the query string, although this should be tested with the example resources. Added HTML-level character set information for the OpenID identity examples, although python-openid's HTML parsing doesn't respect the encoding, at least in release 2.0.2. |
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_with_wsgiref as deploy 11 from Calendar import CalendarResource 12 13 # Choose or customise one of the following if the example fails. 14 15 deploy(CalendarResource(), handle_errors=0) 16 #deploy(CalendarResource("iso-8859-1"), handle_errors=0) 17 18 # vim: tabstop=4 expandtab shiftwidth=4