You can probably do it with a Validator. It may need to be custom: http://web2py.com/book/default/chapter/07#Validators
But I wouldn't worry so much about cluttering your controller. That's what it's for!
You can probably do it with a Validator. It may need to be custom: http://web2py.com/book/default/chapter/07#Validators
But I wouldn't worry so much about cluttering your controller. That's what it's for!