2009-11-27 | Paul Boddie | file changeset files shortlog | 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. |
paulb@48 | 1 | #!/usr/bin/env python |
paulb@48 | 2 | |
paulb@48 | 3 | """ |
paulb@48 | 4 | Webware context for the Calendar application (post Webware 0.8.1). |
paulb@48 | 5 | """ |
paulb@48 | 6 | |
paulb@560 | 7 | from WebStack.Adapters.Webware import deploy |
paulb@416 | 8 | from Calendar import CalendarResource |
paulb@48 | 9 | |
paulb@48 | 10 | # NOTE: Initialising a shared resource. |
paulb@493 | 11 | # Choose or customise one of the following if the example fails. |
paulb@48 | 12 | |
paulb@416 | 13 | resource = CalendarResource() |
paulb@493 | 14 | #resource = CalendarResource("iso-8859-1") |
paulb@493 | 15 | |
paulb@718 | 16 | urlParser = deploy(resource, handle_errors=0) |
paulb@48 | 17 | |
paulb@48 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |