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@185 | 1 | #!/usr/bin/env python |
paulb@185 | 2 | |
paulb@185 | 3 | """ |
paulb@185 | 4 | Webware context for the Sessions application (post Webware 0.8.1). |
paulb@185 | 5 | """ |
paulb@185 | 6 | |
paulb@560 | 7 | from WebStack.Adapters.Webware import deploy |
paulb@185 | 8 | from Sessions import SessionsResource |
paulb@185 | 9 | |
paulb@185 | 10 | # NOTE: Initialising a shared resource. |
paulb@185 | 11 | |
paulb@185 | 12 | resource = SessionsResource() |
paulb@718 | 13 | urlParser = deploy(resource, handle_errors=0) |
paulb@185 | 14 | |
paulb@185 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |