I have managed to subclass the form, but forms need to be named to be able to save and load their states from session.
https://gist.github.com/1034547 On Jun 19, 8:54 pm, andrei <[email protected]> wrote: > I need to store form's state (input values, notes) between requests, > and then restore it automatically on next render. > > GET — show form > POST — process the form, and if validation fails then store the state > in session and raise redirect back > GET — show form with restored state from session, delete state from > session > > It would be better if POST requests don't have render code in them. > > Any ideas how to implement this feature? -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
