SQLFORM.accepts() method

0 views
Skip to first unread message

ae8...@gmail.com

unread,
Apr 24, 2009, 4:12:11 PM4/24/09
to web2py Web Framework
If I create an object of type SQLFORM specifying the 'record' keyword
and then call sqlform.accepts(...), accepts seems to update the
database correctly, but it doesn't seem to update it's own data. When
I redisplay the sqlform after a successful .accepts() call, the
resulting form contains the old data.

Couldn't SQLFORM update it's own fields as well as the db?

ae

mdipierro

unread,
Apr 24, 2009, 4:17:44 PM4/24/09
to web2py Web Framework
By default it displays the default values for the field unless

form.accepts(...,keepvalues=true)

Massimo
Reply all
Reply to author
Forward
0 new messages