The Crud methods automatically handle processing, so you should not call form.process on a Crud form. Review the book section on Crud.
Anthony On Saturday, April 20, 2013 12:09:39 AM UTC-4, lucas wrote: > > how come this code doesn't update the text to upper()? thanx in advance, > lucas > > def xyz(): > #stuff > if cidi: > form = crud.update(tCt, cidi, onvalidation=county_check) > else: > form = crud.create(tCt, onvalidation=county_check) > if form and form.process().accepted: > session.flash = "Success" > redirect(URL(f="counties")) > return dict(form) > > def county_check(form): > form.vars.county = form.vars.county.upper().strip() > form.vars.circuit = form.vars.circuit.upper().strip() > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

