le 08.04.2009 00:35 chris_g a écrit: > On Apr 7, 5:41 pm, Remi Jolin - SysGroup <[email protected]> > wrote: > > >> What I would to is have a look to tg_error after the call to get_errors >> to see which validator "failed" on which field of your form. Then have a >> look to the form, especially if you have a specific template (may be a >> HTML syntax, when rendering error messages for specific field(s)). >> > > tg_errors={'plu_classes': [{'order_lines': [{'qty_ordered': 'Please > enter an integer value'}, None, None]}, None, None]} > Does it seems reasonable regarding the data coming from kw ? > > >> The error message you provided looks like the form rendering tries to >> evaluate "Please enter an integer value". Is it a message coming >> directly from a validator or is it coded in your template ? >> > > The error message comes from formencode/validators.py > class Int(FancyValidator): > ... > messages = { > 'integer': _("Please enter an integer value"), > ... > And what about your template ? Is it specific to this form ? > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

