Overriding user input on errors

"Mike Orr" <[email protected]> Wed, 16 Apr 2008 14:52:49 -0700
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
I have a composite control for attachment management.  It has radio
buttons for keep/replace/delete, and a file upload for "replace".  The
upload must be filled for "replace", and empty for the other two.  The
default is "keep".

So the user chooses "delete" and uploads a file.  The chained
validator rejects it but the "delete" button remains selected.  I want
to override the user input and reselect "keep".  I'm using Pylons
@validate so I have to do it in the validator.  I tried updating the
'field_dict' arg in .validate_python() but it ignored it.  Is there
another way to do this?

-- 
Mike Orr <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone