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
51021fcf
Commit
51021fcf
authored
May 08, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure object is registered when it gets a read conflict.
parent
2b15f06b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/ZODB/Connection.py
src/ZODB/Connection.py
+3
-2
No files found.
src/ZODB/Connection.py
View file @
51021fcf
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.9
1 2003/04/23 20:36:02
jeremy Exp $"""
$Id: Connection.py,v 1.9
2 2003/05/08 22:43:07
jeremy Exp $"""
from
__future__
import
nested_scopes
...
...
@@ -316,6 +316,7 @@ class Connection(ExportImport.ExportImport):
oid
=
object
.
_p_oid
if
self
.
_conflicts
.
has_key
(
oid
):
self
.
getTransaction
().
register
(
object
)
raise
ReadConflictError
(
oid
)
invalid
=
self
.
_invalid
...
...
@@ -590,7 +591,7 @@ class Connection(ExportImport.ExportImport):
# Defer _p_independent() call until state is loaded.
return
1
else
:
self
.
getTransaction
().
register
(
self
)
self
.
getTransaction
().
register
(
obj
)
self
.
_conflicts
[
obj
.
_p_oid
]
=
1
raise
ReadConflictError
(
object
=
obj
)
else
:
...
...
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