# HG changeset patch # User Sylvain Thénault # Date 1261423590 -3600 # Node ID 9d83f9c80c1cdb6ccb13fe305f306450f9ef8b0a # Parent 73e649a7797d41f4ca4e3cad5b945d06b0ecdac1 nicer StringField __init__ diff -r 73e649a7797d -r 9d83f9c80c1c web/formfields.py --- a/web/formfields.py Mon Dec 21 20:25:58 2009 +0100 +++ b/web/formfields.py Mon Dec 21 20:26:30 2009 +0100 @@ -366,9 +366,9 @@ class StringField(Field): widget = TextArea - def __init__(self, max_length=None, **kwargs): + def __init__(self, name=None, max_length=None, **kwargs): self.max_length = max_length # must be set before super call - super(StringField, self).__init__(**kwargs) + super(StringField, self).__init__(name=name, **kwargs) def init_widget(self, widget): if widget is None: