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)

