[Twisted-Python] database transaction commit

Marvin McNett mmcnett at cs.ucsd.edu
Wed Oct 11 15:57:45 MDT 2006


In the adbapi documentation it says, "In all cases a database 
transaction will be commited after your database usage is finished, 
unless an exception is raised in which case it will be rolled back."

So, I'm wondering when my database usage is actually finished.  In the 
example there, would it be after the call to '_getAge' or after the call 
to 'printResult' (i.e. after the callable to runInteraction or after the 
last callback attached to the deferred)?

Thanks,
Marvin




More information about the Twisted-Python mailing list