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