Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
since you already have a reference to the field, just do
field.errors.append(error)
Original comment by jbel...@gmail.com
on 5 Aug 2008 at 6:43
i'm ok. but self.myfield.errors.append don't work in global_validator for me.
Here is the problem:
(...)controllers/inscription.py(12)validator()
(Pdb) self.fields['USR_Email'] is self.render_fields['USR_Email']
False
So if i add an error at this time with self.USR_Email.error.append('blah') the
error
is never render.
Original comment by gael.pas...@gmail.com
on 5 Aug 2008 at 7:16
you are right... I will think about the best way to solve this. The fields /
render_fields distinction is confusing.
Original comment by jbel...@gmail.com
on 5 Aug 2008 at 7:47
r400 makes fs.[fieldname] look it up in .render_fields first, then .fields
(renamed
to ._fields) if not found. I think this will be more intuitive all around,
besides
making field.errors.append(error) work for you now.
Original comment by jbel...@gmail.com
on 5 Aug 2008 at 9:17
Original comment by jbel...@gmail.com
on 5 Aug 2008 at 9:18
Original issue reported on code.google.com by
gael.pas...@gmail.com
on 5 Aug 2008 at 5:23