# HG changeset patch # User paulb # Date 1095529777 0 # Node ID c0b134728a8f6e74f9ab052521b3cda2e853ec52 # Parent fa704545909e9e84c7f06c355b85f17fa3dad9d6 [project @ 2004-09-18 17:49:37 by paulb] Improved the presentation of the form example and added "escaping" of characters in the presented values. diff -r fa704545909e -r c0b134728a8f examples/Common/Form/__init__.py --- a/examples/Common/Form/__init__.py Sat Sep 18 17:31:42 2004 +0000 +++ b/examples/Common/Form/__init__.py Sat Sep 18 17:49:37 2004 +0000 @@ -62,33 +62,57 @@

Form Test

-

Normal

-
-
-
-
-
- -
-

Multipart

-
-
-
-
-
- -
-

Content Type

-

%s

-

Charset

-

From Content Type

-

%s

-

In Use

-

%s

-

Fields from Body

- -

Fields from Body and Path

- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NormalMultipart
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
Content TypeCharset
From Content TypeIn Use
%s%s%s
Fields from BodyFields from Body and Path
+
    %s
+
+
    %s
+
""" % ( @@ -107,7 +131,7 @@ def _format_list(self, l): return "".join([ - "
  • %s
  • " % (value or "empty") + "
  • %s
  • " % (value.replace("&", "&").replace("<", "<").replace(">", ">") or "empty") for value in l ])