# HG changeset patch # User paulb # Date 1078001736 0 # Node ID 2310cb863fe8a479f679b7e4584fe8e547f331df # Parent 231a1d235cb166a9c75803acd63074fab28cb6ec [project @ 2004-02-28 20:55:36 by paulb] Added a test for get_fields_from_body. diff -r 231a1d235cb1 -r 2310cb863fe8 examples/Common/Simple/__init__.py --- a/examples/Common/Simple/__init__.py Sat Feb 28 20:55:18 2004 +0000 +++ b/examples/Common/Simple/__init__.py Sat Feb 28 20:55:36 2004 +0000 @@ -48,6 +48,11 @@ %s +
  • Fields from body: + +
  • @@ -62,6 +67,7 @@ "".join(["
  • %s
  • " % value for value in trans.get_header_values("User-Agent")]), "".join(["
  • %s
  • " % value for value in trans.get_header_values("user-agent")]), "".join(["
    %s
    %s
    " % (key, value) for key, value in trans.get_fields_from_path().items()]), + "".join(["
    %s
    %s
    " % (key, value) for key, value in trans.get_fields_from_body().items()]), )) # vim: tabstop=4 expandtab shiftwidth=4