1.1 --- a/WebStack/ModPython.py Wed Feb 25 22:30:35 2004 +0000
1.2 +++ b/WebStack/ModPython.py Sat Feb 28 16:29:51 2004 +0000
1.3 @@ -5,7 +5,7 @@
1.4 """
1.5
1.6 import Generic
1.7 -from mod_python.util import FieldStorage
1.8 +from mod_python.util import parse_qs, FieldStorage
1.9 from mod_python import apache
1.10
1.11 class Transaction(Generic.Transaction):
1.12 @@ -120,15 +120,11 @@
1.13 path specified in the transaction. The underlying framework may refuse
1.14 to supply fields from the path if handling a POST transaction.
1.15
1.16 - The returned object should employ the cgi.FieldStorage interface.
1.17 -
1.18 - The mod_python.util.FieldStorage class should get fields from the path
1.19 - in all situations, although it may then redefine such fields if
1.20 - identically-named fields are then specified in the body of a POST
1.21 - transaction.
1.22 + Returns a dictionary mapping field names to lists of values (even if a
1.23 + single value is associated with any given field name).
1.24 """
1.25
1.26 - return self.get_fields()
1.27 + return parse_qs(self.get_query_string(), 1) # keep_blank_values=1
1.28
1.29 def get_fields_from_body(self):
1.30