diff options
-rw-r--r-- | docs/news.txt | 4 | ||||
-rw-r--r-- | paste/fixture.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/docs/news.txt b/docs/news.txt index 87c8f56..4973cc6 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -7,7 +7,9 @@ svn trunk --------- * Fixed bug in :class:`paste.fixture.TestApp` that would submit forms - with unnamed fields (like an unnamed submit button). + with unnamed fields (like an unnamed submit button). Also made + checkboxes with no explicit ``value`` send ``on`` instead of + ``checked`` (which is what browsers do). * Fixed bug in :mod:`paste.httpserver` where ``environ['wsgi.input'].readline(max_size)`` ignored the max_size diff --git a/paste/fixture.py b/paste/fixture.py index 45a90c4..b481107 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -1230,8 +1230,7 @@ class Checkbox(Field): def value__get(self): if self.checked: if self._value is None: - # @@: 'on'? - return 'checked' + return 'on' else: return self._value else: |