onvalidation=f should be in
form.accepts(...,onvalidation=f) or crud.create(...,onvalidation=f) but not in return dict(...,onvalidation=f) On Feb 25, 1:53 pm, greenpoise <[email protected]> wrote: > I have a simple validation according to the books page 296. Is > actually simpler and it is not even being evaluated, no errors > either... Here it is: > > def f(form): > if form.vars.suns>form.vars.sunv: form.errors.sunv="cant be > more than 9" > > return dict(employee=employee,form=form,onvalidation=f)

