summaryrefslogtreecommitdiff
path: root/paste/fixture.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2008-02-17 17:33:04 +0000
committerianb <devnull@localhost>2008-02-17 17:33:04 +0000
commit93079ddfb7b5ab52fdf1a41e372ff8b41b35d759 (patch)
treeb0128dd668ccd6aec5a382108efc10ba86f79530 /paste/fixture.py
parent09596eaa928fe973bacb31ee1e0fe73a252df040 (diff)
downloadpaste-93079ddfb7b5ab52fdf1a41e372ff8b41b35d759.tar.gz
Look for params values that have an .items method
Diffstat (limited to 'paste/fixture.py')
-rw-r--r--paste/fixture.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/paste/fixture.py b/paste/fixture.py
index 25d0c07..01ffc08 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -221,6 +221,9 @@ class TestApp(object):
# @@: Should this be all non-strings?
if isinstance(params, (list, tuple, dict)):
params = urllib.urlencode(params)
+ if hasattr(params, 'items'):
+ # Some other multi-dict like format
+ params = urllib.urlencode(params.items())
if upload_files:
params = cgi.parse_qsl(params, keep_blank_values=True)
content_type, params = self.encode_multipart(