Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
8c67e57e
Commit
8c67e57e
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
ab1ec3ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
src/ZODB/Connection.py
src/ZODB/Connection.py
+17
-8
No files found.
src/ZODB/Connection.py
View file @
8c67e57e
...
@@ -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,9 +391,15 @@ class Connection(ExportImport.ExportImport):
...
@@ -391,9 +391,15 @@ 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
:
if
s
is
ResolvedSerial
:
o
.
_p_changed
=
None
else
:
o
.
_p_serial
=
s
o
.
_p_serial
=
s
o
.
_p_changed
=
0
o
.
_p_changed
=
0
elif
oi
==
oid
:
elif
oi
==
oid
:
if
s
is
ResolvedSerial
:
object
.
_p_changed
=
None
else
:
object
.
_p_serial
=
s
object
.
_p_serial
=
s
object
.
_p_changed
=
0
object
.
_p_changed
=
0
...
@@ -624,6 +630,9 @@ class Connection(ExportImport.ExportImport):
...
@@ -624,6 +630,9 @@ 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
if
s
is
ResolvedSerial
:
o
.
_p_changed
=
None
else
:
o
.
_p_serial
=
s
o
.
_p_serial
=
s
o
.
_p_changed
=
0
o
.
_p_changed
=
0
...
...
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