paulb@575 | 1 | #!/usr/bin/env python |
paulb@575 | 2 | |
paulb@575 | 3 | from WebStack.Adapters.BaseHTTPRequestHandler import deploy |
paulb@575 | 4 | import VerySimpleWithLogin |
paulb@575 | 5 | |
paulb@575 | 6 | # Get a simple Web site. |
paulb@575 | 7 | |
paulb@667 | 8 | host = "" # or "http://localhost:8080" or another absolute URL (without path) |
paulb@575 | 9 | resource = VerySimpleWithLogin.get_site(host) |
paulb@575 | 10 | |
paulb@575 | 11 | # Special magic incantation. |
paulb@575 | 12 | |
paulb@575 | 13 | print "Serving..." |
paulb@575 | 14 | deploy(resource, handle_errors=0) |
paulb@575 | 15 | |
paulb@575 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |