On Thursday, March 31, 2016 at 1:03:34 PM UTC-4, Jacob Devin wrote:
>
> What's the difference between these two and when should we use them?
>  dpform=SQLFORM(db.info,row.id,fields=['dp'],showid=False).process()
>  dpform=SQLFORM(db.info,row.id,fields=['dp'],showid=False)
>

You should typically call .process(), as it (a) checks for CSRF attacks, 
(b) does validation, and (c) handles database inserts/updates. The problem 
is that in your code, you have called it twice. The second time you call 
it, the CSRF check will fail. Just call it once.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to