Commit dc8e5d22 authored by Romain Courteaud's avatar Romain Courteaud

Add a function, in order to be able to abort transaction in a

python script.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f82aaaf
# def this_transaction():
# return get_transaction()
#
# def commit_transaction():
# get_transaction().commit()
def abort_transaction():
get_transaction().abort()
# def abort_subtransaction():
# get_transaction().abort(1)
#
# def commit_subtransaction():
# get_transaction().commit(1)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment