All pastes #208367 Raw Edit

Someone

public python v1 · immutable
#208367 ·published 2006-10-18 15:48 UTC
rendered paste body
# test.pyfrom nevow import inevow, rendclass WebRoot(rend.Page):    addSlash = True    def renderHTTP(self, context):        request = inevow.IRequest(context)        request.setHeader('Content-Type', 'text/plain')        return 'plain text\n'# test.tacfrom nevow import appserverfrom twisted.application import internet, serviceimport testapplication = service.Application('test')site = appserver.NevowSite(test.WebRoot())web_server = internet.TCPServer(8080, site)web_server.setServiceParent(application)