thank you!!! ...I long for the day I become completely proficient at
web2py and python if ever!!!!..geeeeeeeeee







On Feb 25, 12:56 pm, Massimo Di Pierro <[email protected]>
wrote:
> 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)

Reply via email to