1.1 --- a/XSLForms/Resources.py Wed Aug 24 21:50:04 2005 +0000
1.2 +++ b/XSLForms/Resources.py Thu Aug 25 13:37:49 2005 +0000
1.3 @@ -196,7 +196,7 @@
1.4 'trans'.
1.5 """
1.6
1.7 - return trans.get_path_info().split("/")[-1]
1.8 + return trans.get_path_info(self.path_encoding).split("/")[-1]
1.9
1.10 def respond(self, trans):
1.11
1.12 @@ -214,6 +214,8 @@
1.13 if method == "GET":
1.14
1.15 # Get the fields from the request path (URL).
1.16 + # NOTE: The encoding is actually redundant since WebStack produces
1.17 + # NOTE: Unicode values.
1.18
1.19 form = XSLForms.Fields.Form(encoding=self.path_encoding, values_are_lists=1)
1.20 parameters = trans.get_fields_from_path()
1.21 @@ -222,6 +224,8 @@
1.22 elif method == "POST":
1.23
1.24 # Get the fields from the request body.
1.25 + # NOTE: The encoding is actually redundant since WebStack produces
1.26 + # NOTE: Unicode values.
1.27
1.28 form = XSLForms.Fields.Form(encoding=self.encoding, values_are_lists=1)
1.29 parameters = trans.get_fields_from_body(self.encoding)