On Friday, July 7, 2017 at 7:57:57 PM UTC-4, ad...@swcacloud.com wrote: > > Sorry about that, my code is in flux right now as I'm working through it. > > > Here are two methods that are working: > > db[table_name].insert(**r) > > db(db[table_name]._id == current_id).update(**r) > > > These methods aren't working: > > db[table_name].update_or_insert(**r) > > db[table_name].update_or_insert(db[table_name]._id == current_id,**r) >
Please define "aren't working". What do you expect, and what do you observe instead. What does the "r" dictionary look like? What is the table definition? 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.