# HG changeset patch # User paulb # Date 1124977069 0 # Node ID d908046cd1b026f1dd64432fe77ded2a1977758b # Parent 29eb6eb6e3490d2e8a866c0c1df970ac77f97def [project @ 2005-08-25 13:37:49 by paulb] Introduced path encoding into get_path_info call. diff -r 29eb6eb6e349 -r d908046cd1b0 XSLForms/Resources.py --- a/XSLForms/Resources.py Wed Aug 24 21:50:04 2005 +0000 +++ b/XSLForms/Resources.py Thu Aug 25 13:37:49 2005 +0000 @@ -196,7 +196,7 @@ 'trans'. """ - return trans.get_path_info().split("/")[-1] + return trans.get_path_info(self.path_encoding).split("/")[-1] def respond(self, trans): @@ -214,6 +214,8 @@ if method == "GET": # Get the fields from the request path (URL). + # NOTE: The encoding is actually redundant since WebStack produces + # NOTE: Unicode values. form = XSLForms.Fields.Form(encoding=self.path_encoding, values_are_lists=1) parameters = trans.get_fields_from_path() @@ -222,6 +224,8 @@ elif method == "POST": # Get the fields from the request body. + # NOTE: The encoding is actually redundant since WebStack produces + # NOTE: Unicode values. form = XSLForms.Fields.Form(encoding=self.encoding, values_are_lists=1) parameters = trans.get_fields_from_body(self.encoding)