changeset 4550:0623944adfd3

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 06 Feb 2009 21:23:29 +0100
parents 173c67aff3d6
children d4635a121689
files MoinMoin/widget/browser.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/widget/browser.py	Thu Feb 05 00:43:06 2009 +0100
+++ b/MoinMoin/widget/browser.py	Fri Feb 06 21:23:29 2009 +0100
@@ -75,8 +75,8 @@
 
         value = None
         name = '%sfilter%d' % (self.data_id, idx)
-        if name in self.request.form:
-            value = self.request.form[name]
+        if name in self.request.values:
+            value = self.request.values.getlist(name)
         while row:
             option = row[idx]
             if isinstance(option, tuple):
@@ -151,8 +151,8 @@
             if havefilters:
                 for idx in range(len(row)):
                     name = '%sfilter%d' % (self.data_id, idx)
-                    if name in self.request.form:
-                        filters[idx] = self.request.form[name]
+                    if name in self.request.values:
+                        filters[idx] = self.request.getlist(name)
                         if filters[idx] == self._all:
                             filters[idx] = None