summaryrefslogtreecommitdiff
path: root/paste/fixture.py
diff options
context:
space:
mode:
authornovalis <devnull@localhost>2007-08-23 01:51:14 +0000
committernovalis <devnull@localhost>2007-08-23 01:51:14 +0000
commit17e5f105f13f6abb24cd042debc0c60f7ab7c2a3 (patch)
tree98a5692d7dfa82432a7d8bce3435f34ca1a15623 /paste/fixture.py
parent600ff9cab4ab8b067c9f30e3831535fb8d8bf262 (diff)
downloadpaste-17e5f105f13f6abb24cd042debc0c60f7ab7c2a3.tar.gz
default value for text fields is empty string -- at least, that's how moz seems to do it
Diffstat (limited to 'paste/fixture.py')
-rw-r--r--paste/fixture.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/paste/fixture.py b/paste/fixture.py
index a9ac2c8..6633cf4 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -1234,7 +1234,12 @@ class Text(Field):
"""
Field representing ``<input type="text">``
"""
-
+ def __init__(self, form, tag, name, pos,
+ value='', id=None, **attrs):
+ #text fields default to empty string
+ Field.__init__(self, form, tag, name, pos,
+ value=value, id=id, **attrs)
+
Field.classes['text'] = Text
class Textarea(Text):