branch | stable |
changeset 3347 | 428f95118556 |
parent 3337 | 09d98666f9b3 |
child 3388 | b8be8fc77c27 |
child 3496 | 35a67ac6efe8 |
--- a/web/formfields.py Mon Sep 21 18:02:21 2009 +0200 +++ b/web/formfields.py Mon Sep 21 18:02:48 2009 +0200 @@ -283,7 +283,7 @@ # else we want a format selector fkwargs['widget'] = Select() fcstr = FormatConstraint() - fkwargs['choices'] = fcstr.vocabulary(req=req) + fkwargs['choices'] = fcstr.vocabulary(form=form) fkwargs['internationalizable'] = True fkwargs['initial'] = lambda f: f.form_field_format(self) field = StringField(name=self.name + '_format', **fkwargs)