diff MoinMoin/request/request_modpython.py @ 2975:ea78a739b5ad

imported patch fix-modpython-patch (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Jan 2008 21:46:35 +0100
parents b902f2397c68
children 799875c9fe2d
line wrap: on
line diff
--- a/MoinMoin/request/request_modpython.py	Sat Jan 05 21:30:45 2008 +0100
+++ b/MoinMoin/request/request_modpython.py	Sat Jan 05 21:46:35 2008 +0100
@@ -12,7 +12,7 @@
 class Request(RequestBase):
     """ specialized on mod_python requests """
 
-    def __init__(self, req):
+    def __init__(self, req, properties={}):
         """ Saves mod_pythons request and sets basic variables using
             the req.subprocess_env, cause this provides a standard
             way to access the values we need here.
@@ -33,7 +33,7 @@
             else:
                 env = req.subprocess_env
             self._setup_vars_from_std_env(env)
-            RequestBase.__init__(self)
+            RequestBase.__init__(self, properties)
 
         except Exception, err:
             self.fail(err)
@@ -84,7 +84,9 @@
         form = util.FieldStorage(self.mpyreq)
 
         args = {}
-        for key in form:
+
+        # You cannot get rid of .keys() here
+        for key in form.keys():
             if key is None:
                 continue
             values = form[key]