Re: [web2py] Re: Finding out why a form does not successfully

2010-11-28 Thread Johann Spies
On 26 November 2010 18:37, mdipierro wrote: > Add a line: > > def fpn0303_create(): >table=db.fpn0303 >crud.settings.keepvalues = True >form=crud.create(db.fpn0303,onaccept=lambda form: > show_id (form.vars.id)) > response.flash=repr(form.errors) >return di

[web2py] Re: Finding out why a form does not successfully

2010-11-26 Thread mdipierro
Add a line: def fpn0303_create(): table=db.fpn0303 crud.settings.keepvalues = True form=crud.create(db.fpn0303,onaccept=lambda form: show_id (form.vars.id)) response.flash=repr(form.errors) return dict(form=form) to see why the data does not go in DB. Ther