2004-09-21 | paulb | file changeset files shortlog | [project @ 2004-09-21 18:05:14 by paulb] Updated the description. Added to the release notes. |
paulb@53 | 1 | #!/usr/bin/env python |
paulb@53 | 2 | |
paulb@53 | 3 | from WebStack.Adapters import BaseHTTPRequestHandler |
paulb@78 | 4 | from Auth import AuthResource, AuthAuthenticator |
paulb@53 | 5 | import BaseHTTPServer |
paulb@53 | 6 | |
paulb@53 | 7 | # Special magic incantation. |
paulb@53 | 8 | |
paulb@78 | 9 | handler = BaseHTTPRequestHandler.HandlerFactory(AuthResource(), AuthAuthenticator()) |
paulb@53 | 10 | address = ("", 8080) |
paulb@53 | 11 | server = BaseHTTPServer.HTTPServer(address, handler) |
paulb@259 | 12 | print "Serving..." |
paulb@53 | 13 | server.serve_forever() |
paulb@53 | 14 | |
paulb@53 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |