paulb@57 | 1 | #!/usr/bin/env python |
paulb@57 | 2 | |
paulb@57 | 3 | """ |
paulb@57 | 4 | Webware context for the Auth application (post Webware 0.8.1). |
paulb@57 | 5 | """ |
paulb@57 | 6 | |
paulb@560 | 7 | from WebStack.Adapters.Webware import deploy |
paulb@84 | 8 | from Auth import AuthResource, AuthAuthenticator |
paulb@57 | 9 | |
paulb@57 | 10 | # NOTE: Initialising a shared resource. |
paulb@57 | 11 | |
paulb@57 | 12 | resource = AuthResource() |
paulb@84 | 13 | authenticator = AuthAuthenticator() |
paulb@560 | 14 | urlParser = deploy(resource, authenticator, handle_errors=0) |
paulb@57 | 15 | |
paulb@57 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |