Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
transaction
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
transaction
Commits
d7d2e914
Commit
d7d2e914
authored
Dec 15, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document why newTransaction is only called by begin.
parent
37459212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
transaction/interfaces.py
transaction/interfaces.py
+9
-2
No files found.
transaction/interfaces.py
View file @
d7d2e914
...
...
@@ -22,12 +22,19 @@ class ITransactionManager(Interface):
"""
def
begin
():
"""
B
egin a new transaction.
"""
Explicitly b
egin 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 begin long before
the transaction manager is involved. (Conceivably 'commit' and
'abort' could call 'begin', but they don't.)
"""
def
get
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment