2004-02-08 | paulb | raw annotate files changeset graph | [project @ 2004-02-08 21:41:46 by paulb] Added header setting and header value formatting methods. Introduced username acquisition to transactions using either framework mechanisms or the Helpers.Auth.UserInfo class. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters import Twisted 4 from Simple import SimpleResource 5 import twisted.web.server 6 import twisted.internet.reactor 7 8 # Special magic incantation. 9 10 top_level = Twisted.Dispatcher(SimpleResource()) 11 site = twisted.web.server.Site(top_level) 12 twisted.internet.reactor.listenTCP(8080, site) 13 twisted.internet.reactor.run() 14 15 # vim: tabstop=4 expandtab shiftwidth=4