[EMAIL PROTECTED] wrote:
> I would say use the same name as that way, cherrypy give you a list.
> Then write a custom schema/validator that validate the list form or use
> some helper programs to loop through it against a simple validator.

That's part of the problem: I only get a list if more than one checkbox
is selected. If only one is selected, I get a single value. To do this,
the validator needs to check the argument type. I can probably get away
with type(arg) is not str, but this seems brittle. I guess in this case
what I need for a validator is IntOrIntSequence()... What I really wish
for is a way to ensure that I always get a (non-string) sequence passed
to the method.

Reply via email to