paulb@762 | 1 | #!/usr/bin/env python |
paulb@762 | 2 | |
paulb@762 | 3 | # Uncomment and adjust the paths below if WebStack is not installed somewhere |
paulb@762 | 4 | # on the PYTHONPATH. |
paulb@762 | 5 | |
paulb@762 | 6 | #import sys |
paulb@762 | 7 | #sys.path.append("/home/paulb/Software/Python/WebStack") |
paulb@762 | 8 | #sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") |
paulb@762 | 9 | |
paulb@762 | 10 | from WebStack.Adapters.CGI import deploy |
paulb@762 | 11 | from OpenIDLogin import get_site_map |
paulb@762 | 12 | |
paulb@762 | 13 | app_url = "http://localhost" # No trailing "/"! |
paulb@762 | 14 | deployment_url = "http://localhost/cgi/openidlogin" # No trailing "/"! |
paulb@762 | 15 | resource = get_site_map(app_url, deployment_url) |
paulb@762 | 16 | |
paulb@762 | 17 | deploy(resource, handle_errors=0) |
paulb@762 | 18 | |
paulb@762 | 19 | # vim: tabstop=4 expandtab shiftwidth=4 |