Looks like the exception is being caught and not re-raised, so there 
shouldn't be a rollback unless an exception is raised somewhere else that 
we can't see.

Anyway, if you want to commit just a particular update but rollback 
anything done previously, you can first call db.rollback() explicitly to 
rollback all previous operations, then do your update, and then call 
db.commit() to commit the update. You can then re-raise the exception if 
needed.

Anthony

On Thursday, March 26, 2015 at 10:35:16 AM UTC-4, Niphlod wrote:
>
> web2py commits by default at the end of a successful request, and 
> rollbacks in case of any exception is raised.
>

-- 
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