2004-02-01 | paulb | raw annotate files changeset graph | [project @ 2004-02-01 18:45:09 by paulb] Fixed the path and "path info" access methods. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters import Twisted 4 from SimpleApplication 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