On 5/17/07, Max Ischenko <[EMAIL PROTECTED]> wrote: > On 5/17/07, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > > > When there are errors and form is redisplayed to the user how the > template > > > can tell it (to display something like "there were errors, please > correct > > > and resubmit")? From what I gather, htmlfill only fills individual > fields' > > > placeholders but there is no form-wide one. Am i mistaken? If not, why > > > aren't errors passed as c.form_errors or something? > > > > In my own apps, I have a global action results message, but it's > > completely separate FormEncode. > > Er? How's that?
If my common layout, if c.action_results is defined, it gets printed. That way, any controller can set c.action_results to print out the message. If you use session['action_results'] instead, it'll even survive redirects; just make sure you delete the message from the session after you show it. Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
