1.1 --- a/WebStack/JavaServlet.py Fri Jun 20 22:23:58 2008 +0200
1.2 +++ b/WebStack/JavaServlet.py Sun Jun 06 15:13:39 2004 +0000
1.3 @@ -222,17 +222,21 @@
1.4
1.5 return self.get_fields_from_body()
1.6
1.7 - def get_fields_from_body(self):
1.8 + def get_fields_from_body(self, encoding=None):
1.9
1.10 """
1.11 A framework-specific method which extracts the form fields from the
1.12 - message body in the transaction.
1.13 + message body in the transaction. The optional 'encoding' parameter
1.14 + specifies the character encoding of the message body for cases where no
1.15 + such information is available, but where the default encoding is to be
1.16 + overridden.
1.17
1.18 Returns a dictionary mapping field names to lists of values (even if a
1.19 single value is associated with any given field name).
1.20
1.21 NOTE: There may not be a reliable means of extracting only the fields
1.22 - NOTE: from the message body.
1.23 + NOTE: from the message body. Moreover, the encoding of the fields may
1.24 + NOTE: not be pertinent.
1.25 """
1.26
1.27 parameter_map = self.request.getParameterMap()