2004-09-02 | paulb | raw annotate files changeset graph | [project @ 2004-09-02 19:33:37 by paulb] Changed the output to Unicode so that the converting stream is effective. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters import Twisted 4 from Auth import AuthResource, AuthAuthenticator 5 import twisted.web.server 6 import twisted.internet.reactor 7 8 # Special magic incantation. 9 10 top_level = Twisted.Dispatcher(AuthResource(), AuthAuthenticator()) 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