[FE-discuss] Overriding user input on errors

Top Page
Author: Mike Orr
Date:  
To: formencode-discuss
Subject: [FE-discuss] Overriding user input on errors
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 <sluggoster@???>

-------------------------------------------------------------------------
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
_______________________________________________
FormEncode-discuss mailing list
FormEncode-discuss@???
https://lists.sourceforge.net/lists/listinfo/formencode-discuss