Formencode is useful, but trying to push in too much logic can be a
pain in the ass.

There are a few approaches I've used in the past:

1- You can do multiple schemas - one has the password, one has
everything but, and then a class that inherits both ; then display the
pertinent form depending on NEW or EDIT

2- Do the multiple schemas as above , post everything to a singular
method that then dispatches to a NEW and EDIT method that each have
their own @validator

3- Keep the password out of the form, then just use an 'if' clause to
validate it yourself.


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

Reply via email to