# HG changeset patch # User paulb # Date 1075663561 0 # Node ID 689d7380e769594b9083c6ccad7da1a839f06a24 # Parent 8f639cc37fa6cf629178bb147dc971ce1a733912 [project @ 2004-02-01 19:26:01 by paulb] Enhanced the example to show more information. diff -r 8f639cc37fa6 -r 689d7380e769 examples/Common/SimpleApplication/__init__.py --- a/examples/Common/SimpleApplication/__init__.py Sun Feb 01 18:46:33 2004 +0000 +++ b/examples/Common/SimpleApplication/__init__.py Sun Feb 01 19:26:01 2004 +0000 @@ -13,27 +13,26 @@ # Get some information. - path_info, path = "", "" - - try: - path_info = trans.get_path_info() - path = trans.get_path() - except NotImplementedError: - pass - out = trans.get_response_stream() out.write("""

Test

-

- Path: %s -

-

- Path info: %s -

+ -""" % (path, path_info)) +""" % ( + 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