diff -r e70ad982374a -r 8c3336c5ddba web/formfields.py --- a/web/formfields.py Wed Apr 08 20:36:39 2009 +0200 +++ b/web/formfields.py Wed Apr 08 20:37:22 2009 +0200 @@ -169,7 +169,12 @@ if self.sort: vocab = sorted(vocab) return vocab - + + def form_init(self, form): + """method called before by form_build_context to trigger potential field + initialization requiring the form instance + """ + pass class StringField(Field): def __init__(self, max_length=None, **kwargs):