Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
2b790fba
Commit
2b790fba
authored
May 06, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops! synchs can be None. Reported by Gary Poster.
parent
9b42a5e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/transaction/_manager.py
src/transaction/_manager.py
+3
-2
No files found.
src/transaction/_manager.py
View file @
2b790fba
...
@@ -33,14 +33,15 @@ from transaction._transaction import Transaction
...
@@ -33,14 +33,15 @@ from transaction._transaction import Transaction
# at top level here.
# at top level here.
# Call the ISynchronizer newTransaction() method on every element of
# Call the ISynchronizer newTransaction() method on every element of
# WeakSet synchs.
# WeakSet synchs
(or skip it if synchs is None)
.
# A transaction manager needs to do this whenever begin() is called.
# A transaction manager needs to do this whenever begin() is called.
# Since it would be good if tm.get() returned the new transaction while
# Since it would be good if tm.get() returned the new transaction while
# newTransaction() is running, calling this has to be delayed until after
# newTransaction() is running, calling this has to be delayed until after
# the transaction manager has done whatever it needs to do to make its
# the transaction manager has done whatever it needs to do to make its
# get() return the new txn.
# get() return the new txn.
def
_new_transaction
(
txn
,
synchs
):
def
_new_transaction
(
txn
,
synchs
):
synchs
.
map
(
lambda
s
:
s
.
newTransaction
(
txn
))
if
synchs
:
synchs
.
map
(
lambda
s
:
s
.
newTransaction
(
txn
))
class
TransactionManager
(
object
):
class
TransactionManager
(
object
):
...
...
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