2004-12-30 | paulb | raw annotate files changeset graph | [project @ 2004-12-30 02:03:12 by paulb] Changed the multiple choice field creation to be more straightforward. Note that such elements can disrupt element ordering and should really be kept in homogeneous collections. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters import BaseHTTPRequestHandler 4 from PEP241 import PEP241Resource 5 import BaseHTTPServer 6 7 # Special magic incantation. 8 9 handler = BaseHTTPRequestHandler.HandlerFactory(PEP241Resource()) 10 address = ("", 8080) 11 server = BaseHTTPServer.HTTPServer(address, handler) 12 print "Serving..." 13 server.serve_forever() 14 15 # vim: tabstop=4 expandtab shiftwidth=4