From 17e5f105f13f6abb24cd042debc0c60f7ab7c2a3 Mon Sep 17 00:00:00 2001 From: novalis Date: Thu, 23 Aug 2007 01:51:14 +0000 Subject: default value for text fields is empty string -- at least, that's how moz seems to do it --- paste/fixture.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'paste/fixture.py') 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 ```` """ - + 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): -- cgit v1.2.1