2004-06-06 | paulb | raw annotate files changeset graph | [project @ 2004-06-06 15:13:39 by paulb] Introduced Unicode conversion in message body fields acquisition (to Unicode from the original charset) and in the production of response output (to an appropriate charset from Unicode where used). |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters import BaseHTTPRequestHandler 4 from Calendar import DirectoryResource 5 import BaseHTTPServer 6 7 # Special magic incantation. 8 9 handler = BaseHTTPRequestHandler.HandlerFactory(DirectoryResource()) 10 address = ("", 8080) 11 server = BaseHTTPServer.HTTPServer(address, handler) 12 server.serve_forever() 13 14 # vim: tabstop=4 expandtab shiftwidth=4