Chris Shenton wrote: > I'm trying to use formencode.validators Set() to check a multi-select > form input. I cannot get it to allow me to select nothing, to return > the empty list if nothing is selected: if I don't select something > from the multi-select it complains "Missing value".
Generally empty values are handled differently than other values in FormEncode. In this case I think it's actually no value at all, and it's the Schema that is complaining. If you have if_missing=() it'll do what you want. This probably makes sense generally, so I've turned that on by default in the FormEncode trunk (but you'll probably just want to add it by hand in your code). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
