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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
2cb5c6fd
Commit
2cb5c6fd
authored
Mar 20, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added check for conflict resolution in defered return of serial
numbers.
parent
1ec68ced
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
trunk/src/ZODB/Connection.py
trunk/src/ZODB/Connection.py
+17
-8
No files found.
trunk/src/ZODB/Connection.py
View file @
2cb5c6fd
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
"""Database connection support
"""Database connection support
$Id: Connection.py,v 1.4
6 2001/03/15 13:16:26
jim Exp $"""
$Id: Connection.py,v 1.4
7 2001/03/20 04:00:17
jim Exp $"""
__version__
=
'$Revision: 1.4
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
7
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
from
POSException
import
ConflictError
,
ExportError
...
@@ -391,11 +391,17 @@ class Connection(ExportImport.ExportImport):
...
@@ -391,11 +391,17 @@ class Connection(ExportImport.ExportImport):
if
_type
(
s
)
is
not
_st
:
raise
s
if
_type
(
s
)
is
not
_st
:
raise
s
o
=
get
(
oi
,
oi
)
o
=
get
(
oi
,
oi
)
if
o
is
not
oi
:
if
o
is
not
oi
:
o
.
_p_serial
=
s
if
s
is
ResolvedSerial
:
o
.
_p_changed
=
0
o
.
_p_changed
=
None
else
:
o
.
_p_serial
=
s
o
.
_p_changed
=
0
elif
oi
==
oid
:
elif
oi
==
oid
:
object
.
_p_serial
=
s
if
s
is
ResolvedSerial
:
object
.
_p_changed
=
0
object
.
_p_changed
=
None
else
:
object
.
_p_serial
=
s
object
.
_p_changed
=
0
try
:
cache
[
oid
]
=
object
try
:
cache
[
oid
]
=
object
except
:
except
:
...
@@ -624,8 +630,11 @@ class Connection(ExportImport.ExportImport):
...
@@ -624,8 +630,11 @@ class Connection(ExportImport.ExportImport):
o
=
get
(
oid
,
oid
)
o
=
get
(
oid
,
oid
)
if
o
is
not
oid
:
if
o
is
not
oid
:
if
_type
(
s
)
is
not
_st
:
raise
s
if
_type
(
s
)
is
not
_st
:
raise
s
o
.
_p_serial
=
s
if
s
is
ResolvedSerial
:
o
.
_p_changed
=
0
o
.
_p_changed
=
None
else
:
o
.
_p_serial
=
s
o
.
_p_changed
=
0
def
tpc_finish
(
self
,
transaction
):
def
tpc_finish
(
self
,
transaction
):
...
...
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