On the processing action you can use db.table.validate_and_insert(**fields), if validated the record will be inserted, otherwise it will return the error message, if you do not want to insert the values, so you can use table._validate method db.table._validate(**fields) will doo the same but nothing will be inserted.
--

