# HG changeset patch # User paulb # Date 1129823031 0 # Node ID dea8ba3ee90a813913a227e9c696c2566cadba3e # Parent e325db7e56b7a380f5adbd65b2fb5621860c70d4 [project @ 2005-10-20 15:43:49 by paulb] Changed request method to lower case. diff -r e325db7e56b7 -r dea8ba3ee90a examples/Common/Cookies/__init__.py --- a/examples/Common/Cookies/__init__.py Wed Oct 19 17:19:49 2005 +0000 +++ b/examples/Common/Cookies/__init__.py Thu Oct 20 15:43:51 2005 +0000 @@ -22,7 +22,7 @@ # If the "set method" form was used, set the new method. if fields_from_path.has_key("set"): - method = (fields_from_path.get("method") or ["GET"])[0] + method = (fields_from_path.get("method") or ["get"])[0] message = "Form method set to %s." % method cookie_name = cookie_value = None @@ -31,10 +31,10 @@ else: if fields_from_path.has_key("add") or fields_from_path.has_key("delete"): fields = fields_from_path - method = (fields.get("method") or ["GET"])[0] + method = (fields.get("method") or ["get"])[0] else: fields = trans.get_fields_from_body() - method = (fields.get("method") or ["GET"])[0] + method = (fields.get("method") or ["get"])[0] cookie_name_list = fields.get("name") or ["test"] cookie_value_list = fields.get("value") or ["test"] @@ -76,8 +76,8 @@ %s

Method

-
-

Method:

+ +

Method:

Cookie

@@ -96,8 +96,8 @@ """ % ( message, self._format_cookies(trans.get_cookies()), - self._is_selected(method == "GET"), - self._is_selected(method == "POST"), + self._is_selected(method == "get"), + self._is_selected(method == "post"), method, path, method, diff -r e325db7e56b7 -r dea8ba3ee90a examples/Common/Sessions/__init__.py --- a/examples/Common/Sessions/__init__.py Wed Oct 19 17:19:49 2005 +0000 +++ b/examples/Common/Sessions/__init__.py Thu Oct 20 15:43:51 2005 +0000 @@ -69,7 +69,7 @@ %s

Session

-
+