paulb@734 | 1 | #!/usr/bin/env python |
paulb@734 | 2 | |
paulb@734 | 3 | from WebStack.Adapters.BaseHTTPRequestHandler import deploy |
paulb@744 | 4 | from SimpleWithOpenID import get_site_map |
paulb@734 | 5 | |
paulb@734 | 6 | app_url = "http://localhost:8080" # No trailing "/"! |
paulb@734 | 7 | initiation_url = "http://localhost:8080/login" |
paulb@734 | 8 | secret_key = "horses" # Must match the login authenticator's key. |
paulb@734 | 9 | |
paulb@744 | 10 | resource = get_site_map(app_url, initiation_url, secret_key) |
paulb@744 | 11 | |
paulb@734 | 12 | print "Serving..." |
paulb@744 | 13 | deploy(resource, handle_errors=0) |
paulb@734 | 14 | |
paulb@734 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |