ok i think i get it : suppose I have a *scheduled task* that performs 3 successive *insert/update* ops depending on each other like op2 might refer to op1 and op3 to op2 then I must do:
op1 = db.tablea.insert_or_update(......) db.commit() ....some code here raises an exception op2 = db.tableb.insert_or_update(......) db.commit() op3= db.tablec.insert(...) db.commit() is this correct ? another thing : let's suppose we want the task to do nothing but op1 + op2 + op3 (ie performs 3 insert_update or do nothing) what happens if some code in between op1 and op2 raises an exception. Do I need to do a* db.rollback()* in order to cancel op1 ? -- 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.