Re: [web2py] SQLFORM.factory fails to save to database, id is null

2014-09-24 Thread Fabiano Almeida
try: db.table.insert(f_name=form.vars.f_name) 2014-09-23 6:10 GMT-03:00 Andy Joel : > I have a very simple form processing page in my controller: > > def new(): > form = SQLFORM.factory( > Field('f_name', label='Your name', requires=IS_NOT_EMPTY()), > ) > if form.process(

[web2py] SQLFORM.factory fails to save to database, id is null

2014-09-24 Thread Andy Joel
I have a very simple form processing page in my controller: def new(): form = SQLFORM.factory( Field('f_name', label='Your name', requires=IS_NOT_EMPTY()), ) if form.process().accepted: db.table.insert(**form.vars) response.flash = 'form accepted' elif f