On Wednesday, April 6, 2016 at 11:20:44 AM UTC-4, Anthony wrote: > > On the other hand I am curious that you update row with simple update(), >> you suppose to use update_record() >> > > They are both valid methods -- .update updates the Row object itself (like > updating a dictionary), whereas .update_record updates the record in the > database. You can actually issue several updates to the Row object via > .update, and then later call .update_record() with no arguments, and the > changes made to the Row object will be propagated to the database. >
And in this case, I don't think he wants to make any changes in the database -- he is attempting to create a usable JSON object. 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.