ZODB.Transaction Management.Transaction.abort

Documentation
Abort the transaction, discarding any changes.
Parameters
TypeNameDefaultDocumentation
Booleansubtransaction0A flag indicating whether the work aborted should be for a sub-transaction. By default, a full transaction, including committed subtransactions, are aborted.