[web2py] Re: override record in db

2017-11-01 Thread Dave S
On Wednesday, November 1, 2017 at 8:36:49 AM UTC-7, runr...@gmail.com wrote: > > I have scrapped the controller I was using because it wasn't working but > it was something like this > def display_form(): > *record = alpha.person(request.args(0)) or redirect (URL('index'))* > form=SQLFOR

[web2py] Re: override record in db

2017-11-01 Thread runruh11
I have scrapped the controller I was using because it wasn't working but it was something like this def display_form(): *record = alpha.person(request.args(0)) or redirect (URL('index'))* form=SQLFORM(alpha.person,* record)* if form.process(keepvalues=True).accepted: response.f

[web2py] Re: override record in db

2017-10-31 Thread Dave S
On Tuesday, October 31, 2017 at 11:54:59 AM UTC-7, R U wrote: > > I am curious of how to override an existing record in a database via a > form. > > Take for example a simple input of > db = DAL('sqlite://storage.sqlite') > db.define_table('person', > Field('email', requires=IS_EMAIL()), >