# HG changeset patch # User paulb # Date 1076197758 0 # Node ID a983e3856185fad9a3af32a66e73db09954b2166 # Parent b85e244ec5a411fa871e50fef8a66320efb7b580 [project @ 2004-02-07 23:49:14 by paulb] Renamed Simple application. diff -r b85e244ec5a4 -r a983e3856185 examples/Common/Simple/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/Common/Simple/__init__.py Sat Feb 07 23:49:18 2004 +0000 @@ -0,0 +1,38 @@ +#!/usr/bin/env python + +"A simple application for test purposes." + +import WebStack.Generic + +class SimpleResource: + + "A simple resource." + + def respond(self, trans): + trans.set_content_type(WebStack.Generic.ContentType("text/html")) + + # Get some information. + + out = trans.get_response_stream() + out.write(""" + + +

Test

+ + + +""" % ( + trans.get_path(), + trans.get_path_info(), + trans.get_request_method(), + trans.get_content_type().content_type, + trans.get_content_type().charset, +)) + +# vim: tabstop=4 expandtab shiftwidth=4 diff -r b85e244ec5a4 -r a983e3856185 examples/Common/SimpleApplication/__init__.py --- a/examples/Common/SimpleApplication/__init__.py Sat Feb 07 23:49:03 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -#!/usr/bin/env python - -"A simple application for test purposes." - -import WebStack.Generic - -class SimpleResource: - - "A simple resource." - - def respond(self, trans): - trans.set_content_type(WebStack.Generic.ContentType("text/html")) - - # Get some information. - - out = trans.get_response_stream() - out.write(""" - - -

Test

- - - -""" % ( - trans.get_path(), - trans.get_path_info(), - trans.get_request_method(), - trans.get_content_type().content_type, - trans.get_content_type().charset, -)) - -# vim: tabstop=4 expandtab shiftwidth=4