ZODB.Transaction Management.TransactionManager.get_transaction

Documentation
Get the current thread�s transaction, creating one if necessary.
Returns
Transactionthe current thread's transaction.