# HG changeset patch # User Sylvain Thénault # Date 1261423487 -3600 # Node ID 677e487e691a38dc17dc251b0e4bd0e99a855b63 # Parent eb9acad29407613699af38fef99f79349d6c40e2 process_posted yield field instead of field's name diff -r eb9acad29407 -r 677e487e691a web/formfields.py --- a/web/formfields.py Mon Dec 21 20:23:56 2009 +0100 +++ b/web/formfields.py Mon Dec 21 20:24:47 2009 +0100 @@ -355,12 +355,12 @@ def process_posted(self, form): for field in self.actual_fields(form): if field is self: - yield field.name, field.process_form_value(form) + yield field, field.process_form_value(form) else: # recursive function: we might have compound fields # of compound fields (of compound fields of ...) - for fieldname, value in field.process_posted(form): - yield fieldname, value + for field, value in field.process_posted(form): + yield field, value class StringField(Field):