summaryrefslogtreecommitdiff
path: root/paste/fixture.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2008-05-01 17:22:24 +0000
committerianb <devnull@localhost>2008-05-01 17:22:24 +0000
commita3e7e40126069492e50c64a34ddc0975d4e9a8d1 (patch)
tree1ddeb8f59f59ca2c07d580b95bf77ac8107361c0 /paste/fixture.py
parent1ca6961afd1452851d84eeeab175c990947b2f2a (diff)
downloadpaste-a3e7e40126069492e50c64a34ddc0975d4e9a8d1.tar.gz
with TestApp forms, don't submit forms with unnamed fields
Diffstat (limited to 'paste/fixture.py')
-rw-r--r--paste/fixture.py2
1 files changed, 2 insertions, 0 deletions
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: