2004-02-01 | paulb | raw annotate files changeset graph | [project @ 2004-02-01 15:28:35 by paulb] Added a simple application example. |
1 #!/usr/bin/env python 2 3 "A simple application for test purposes." 4 5 import WebStack.Generic 6 7 class SimpleResource: 8 9 "A simple resource." 10 11 def respond(self, trans): 12 trans.set_content_type(WebStack.Generic.ContentType("text/html")) 13 out = trans.get_response_stream() 14 out.write("<html><body><h1>Test</h1></body></html>") 15 16 # vim: tabstop=4 expandtab shiftwidth=4