On Sun, Oct 11, 2009 at 1:53 PM, Jonathan Vanasco <[email protected]> wrote:
>
> where does webhelpers get the data for form values ?
>
> i have the validator handling stuff fine, however in some situations i
> need to cause an error within the controller.
This is one of the problems with @validate; it's not flexible enough
for this situation. The developers are mulling over ways to rewrite
it or replace it.
You can generally do what @validate does:
html = self.my_form_method()
return htmlfill.render(html, request.params, {"error_field": "Error
Message"}) # Or request.POST for post-only situation
--
Mike Orr <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---