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 Twisted 4 from Form import FormResource 5 import twisted.web.server 6 import twisted.internet.reactor 7 8 # Special magic incantation. 9 10 top_level = Twisted.Dispatcher(FormResource()) 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