WebStack

examples/BaseHTTPRequestHandler/FormApp.py

102:e5a71822d501
2004-04-18 paulb [project @ 2004-04-18 23:42:54 by paulb] Added notes, particularly about cookies.
     1 #!/usr/bin/env python     2      3 from WebStack.Adapters import BaseHTTPRequestHandler     4 from Form import FormResource     5 import BaseHTTPServer     6      7 # Special magic incantation.     8      9 handler = BaseHTTPRequestHandler.HandlerFactory(FormResource())    10 address = ("", 8080)    11 server = BaseHTTPServer.HTTPServer(address, handler)    12 server.serve_forever()    13     14 # vim: tabstop=4 expandtab shiftwidth=4