2004-04-25 | paulb | file changeset files shortlog | [project @ 2004-04-25 18:32:11 by paulb] Added the release number. |
paulb@47 | 1 | #!/usr/bin/env python |
paulb@47 | 2 | |
paulb@47 | 3 | from WebStack.Adapters import BaseHTTPRequestHandler |
paulb@47 | 4 | from Calendar import DirectoryResource |
paulb@47 | 5 | import BaseHTTPServer |
paulb@47 | 6 | |
paulb@47 | 7 | # Special magic incantation. |
paulb@47 | 8 | |
paulb@47 | 9 | handler = BaseHTTPRequestHandler.HandlerFactory(DirectoryResource()) |
paulb@47 | 10 | address = ("", 8080) |
paulb@47 | 11 | server = BaseHTTPServer.HTTPServer(address, handler) |
paulb@47 | 12 | server.serve_forever() |
paulb@47 | 13 | |
paulb@47 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |