1.1 --- a/WebStack/Twisted.py Wed Feb 25 22:30:35 2004 +0000
1.2 +++ b/WebStack/Twisted.py Sat Feb 28 16:29:51 2004 +0000
1.3 @@ -6,6 +6,7 @@
1.4
1.5 import Generic
1.6 from Helpers.Auth import UserInfo
1.7 +from cgi import parse_qs
1.8
1.9 class Transaction(Generic.Transaction):
1.10
1.11 @@ -128,12 +129,11 @@
1.12 path specified in the transaction. The underlying framework may refuse
1.13 to supply fields from the path if handling a POST transaction.
1.14
1.15 - The returned object should employ the cgi.FieldStorage interface.
1.16 + Returns a dictionary mapping field names to lists of values (even if a
1.17 + single value is associated with any given field name).
1.18 """
1.19
1.20 - # NOTE: May need a wrapper around this object.
1.21 -
1.22 - return self.trans.args
1.23 + return parse_qs(self.get_query_string(), keep_blank_values=1)
1.24
1.25 def get_fields_from_body(self):
1.26