Michele Cella wrote:

> IIRC there should be an "error" variable available to the FormField
> template that gives you the field error.

Indeed there is. And a "label" too... Thanks !

And if there were not available, It seems that overloading
'update_params'  is the solution.


Now I need to make the form do the magic regarding values, as the
solution used in WeAreFlexible

"form.display_field_for('price', value=product.price)"

is not working when there is an error, as product is None. Passing None
to the widget will fetch the data from "input_values", but you have to
add extra logic to do it.

So I'm still wondering if there is a better solution ?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to