1
2
3
4
5
6
7
8
9
10
11
12
13
14 """Exported transaction functions.
15
16 $Id: __init__.py 30129 2005-04-24 01:29:02Z jim $
17 """
18
19 from transaction._transaction import Transaction
20 from transaction._manager import TransactionManager, ThreadTransactionManager
21
22 manager = ThreadTransactionManager()
23 get = manager.get
24 begin = manager.begin
25 commit = manager.commit
26 abort = manager.abort
27 savepoint = manager.savepoint
28
30 from ZODB.utils import deprecated36
31 deprecated36(""" use transaction.get() instead of get_transaction().
32 transaction.commit() is a shortcut spelling of transaction.get().commit(),
33 and transaction.abort() of transaction.get().abort().""")
34 return get()
35