Hi, everybody! I need some very basic help... I'm trying to adapt the Simple Widget Form Tutorial to 2.0. (Yes, still!) It's working except for the validation - which works (kicks me back to the error_handler form if I flunk a validator), but does not print any of the validation error messages, and does not re-populate the form with my entered values.
If anybody has the code of any 2.0 app where forms validation is working properly, that's probably all I need; just mail it to me or point me to it and I'll figure it out myself. Failing that, can anybody confirm that validation has been seen to work properly in 2.0 yet? I've traced the problem this far before suffering brain meltdown: In tg/decorated.py, Decorated_Controller._handle_validation_errors (line 107), pylons.c.form_errors and pylons.c.form_values both get set properly. Then execution returns to Decorated_Controller._perform_call. which generates a response (line 147: response = self._render_response(controller, output)) that shows no hint of awareness of pylons.c.form_errors or pylons.c.form_values. In fact, grep'ing through my Pylons, tg2, toscawidgets, and twForms source code, I see only places where pylons.c.form_errors and pylons.c.form_values are set; I don't see anyplace where they are actually read. So it looks as though that functionality may simply not be implemented yet... I'm trying to trace the execution all the way into , but without a clue about where form_errors and form_values are supposed to be inserted into the response, it's a big dark forest to wander through. I'm guessing it has to be somewhere in twForms, but haven't been able to figure out where. Thanks for any advice! Like I said, a working validated tg2 form to study is probably all I'll need, if any exists. -- - Catherine http://catherinedevlin.blogspot.com/ *** PyCon 2008 * Chicago * March 13-20 * us.pycon.org *** --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
