summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/news.txt3
-rw-r--r--paste/fixture.py2
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/news.txt b/docs/news.txt
index 1bc31f1..87c8f56 100644
--- a/docs/news.txt
+++ b/docs/news.txt
@@ -6,6 +6,9 @@ News
svn trunk
---------
+* Fixed bug in :class:`paste.fixture.TestApp` that would submit forms
+ with unnamed fields (like an unnamed submit button).
+
* Fixed bug in :mod:`paste.httpserver` where
``environ['wsgi.input'].readline(max_size)`` ignored the max_size
argument, which can lead to large memory usage (from Jakub Stolarski)
diff --git a/paste/fixture.py b/paste/fixture.py
index c197613..45a90c4 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -1102,6 +1102,8 @@ class Form(object):
field = self.get(name, index=index)
submit.append((field.name, field.value_if_submitted()))
for name, fields in self.fields.items():
+ if name is None:
+ continue
for field in fields:
value = field.value
if value is None: