1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/SimpleApplication/__init__.py Sun Feb 01 15:28:35 2004 +0000
1.3 @@ -0,0 +1,16 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +"A simple application for test purposes."
1.7 +
1.8 +import WebStack.Generic
1.9 +
1.10 +class SimpleResource:
1.11 +
1.12 + "A simple resource."
1.13 +
1.14 + def respond(self, trans):
1.15 + trans.set_content_type(WebStack.Generic.ContentType("text/html"))
1.16 + out = trans.get_response_stream()
1.17 + out.write("<html><body><h1>Test</h1></body></html>")
1.18 +
1.19 +# vim: tabstop=4 expandtab shiftwidth=4