The Transaction object controls initiation
and completion or abortion of transactons. Will raise a
StaleTransactionError on all methods except begin(), if no transaction is
currently active.
Returns true if a transaction if currently active.
Start a transaction. Raises a NestedTransactionError if an unfinished
transaction is currently active.
Commit the currently active transaction to the Repository. Raises a
StaleTransactionError if there is no active transaction or a CommitError
(or one of it’s childclasses) if an error occurs.
Abort the currently active transaction and restore all values of persistent
objects to the values in the datastore. Persistent objects in the NEW state
will become TRANSIENT again, losing their persistent identity. Raises an
TransactionAbortedError when the transaction is occuring inside a block.
This method is also aliased as
abort
Begin a transaction and commit it
when the block terminates. If any exception is raised by the block, the
transaction is automatically rolledback by calling abort and the exception re-raised.
Raises a NestedTransactionError if the ransaction is already active.
Set committer for all transactions committed hereafter.
Set log message for currently active transaction. Will be cleared when a
new transaction is started. Raises a StaleTransactionError unless a
transaction is currenlty active.