1.1 --- a/examples/Common/Cookies/__init__.py Wed Oct 19 17:19:49 2005 +0000
1.2 +++ b/examples/Common/Cookies/__init__.py Thu Oct 20 15:43:51 2005 +0000
1.3 @@ -22,7 +22,7 @@
1.4 # If the "set method" form was used, set the new method.
1.5
1.6 if fields_from_path.has_key("set"):
1.7 - method = (fields_from_path.get("method") or ["GET"])[0]
1.8 + method = (fields_from_path.get("method") or ["get"])[0]
1.9 message = "Form method set to %s." % method
1.10 cookie_name = cookie_value = None
1.11
1.12 @@ -31,10 +31,10 @@
1.13 else:
1.14 if fields_from_path.has_key("add") or fields_from_path.has_key("delete"):
1.15 fields = fields_from_path
1.16 - method = (fields.get("method") or ["GET"])[0]
1.17 + method = (fields.get("method") or ["get"])[0]
1.18 else:
1.19 fields = trans.get_fields_from_body()
1.20 - method = (fields.get("method") or ["GET"])[0]
1.21 + method = (fields.get("method") or ["get"])[0]
1.22
1.23 cookie_name_list = fields.get("name") or ["test"]
1.24 cookie_value_list = fields.get("value") or ["test"]
1.25 @@ -76,8 +76,8 @@
1.26 %s
1.27 </ul>
1.28 <h2>Method</h2>
1.29 - <form method="GET">
1.30 - <p>Method: <select name="method"><option value="GET" %s>GET</option><option value="POST" %s>POST</option></select></p>
1.31 + <form method="get">
1.32 + <p>Method: <select name="method"><option value="get" %s>get</option><option value="post" %s>post</option></select></p>
1.33 <p><input name="set" type="submit" value="Set method..."/></p>
1.34 </form>
1.35 <h2>Cookie</h2>
1.36 @@ -96,8 +96,8 @@
1.37 """ % (
1.38 message,
1.39 self._format_cookies(trans.get_cookies()),
1.40 - self._is_selected(method == "GET"),
1.41 - self._is_selected(method == "POST"),
1.42 + self._is_selected(method == "get"),
1.43 + self._is_selected(method == "post"),
1.44 method,
1.45 path,
1.46 method,
2.1 --- a/examples/Common/Sessions/__init__.py Wed Oct 19 17:19:49 2005 +0000
2.2 +++ b/examples/Common/Sessions/__init__.py Thu Oct 20 15:43:51 2005 +0000
2.3 @@ -69,7 +69,7 @@
2.4 %s
2.5 </dl>
2.6 <h2>Session</h2>
2.7 - <form method="POST">
2.8 + <form method="post">
2.9 <p>
2.10 <input name="create" type="submit" value="Create..."/>
2.11 <input name="expire" type="submit" value="Expire..."/>