Hey guys,

I'm working on a template application built on 0.3 for the user
community. I'm having a bit of a problem with repopulating a form when
a form submit fails. An example would be a new user signing up, only
to find that the username is taken, or the email address is already
associated with an account. I'd like to take the user back to the form
with all the other field auto-populated.

Here are some pasties of my code:

This is the user model: http://codepad.org/Tn22IkA2

This is the user controller: http://codepad.org/0s5qYotS

And the offending template: http://codepad.org/YFIg1M6e

I'm wondering if you guys can think of a more elegant solution. Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to