Commit 7838b4c7 authored by Jim Fulton's avatar Jim Fulton Committed by GitHub

Merge pull request #40 from zopefoundation/wtf-newTransaction

Document why newTransaction is only called by begin.
parents 37459212 7956161e
......@@ -22,12 +22,19 @@ class ITransactionManager(Interface):
"""
def begin():
"""Begin a new transaction.
"""Explicitly begin a new transaction.
If an existing transaction is in progress, it will be aborted.
The newTransaction() method of registered synchronizers is called,
The ``newTransaction`` method of registered synchronizers is called,
passing the new transaction object.
Note that transactions may be started implicitly without
calling ``begin``. In that case, ``newTransaction`` isn't
called because the transaction manager doesn't know when to
call it. The transaction is likely to have begun long before
the transaction manager is involved. (Conceivably 'commit' and
'abort' could call 'begin', but they don't.)
"""
def get():
......
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