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
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
ZEO
Commits
5f6e7d61
Commit
5f6e7d61
authored
May 09, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logic to handle asynchronous conflict errors (from ZEO).
parent
5c5ca791
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/ZODB/Connection.py
src/ZODB/Connection.py
+7
-3
No files found.
src/ZODB/Connection.py
View file @
5f6e7d61
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.3
1 2000/05/05 19:53:58
jim Exp $"""
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.3
2 2000/05/09 19:09:16
jim Exp $"""
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
...
...
@@ -341,6 +341,7 @@ class Connection(ExportImport.ExportImport):
else
:
# defered returns
for
oi
,
s
in
s
:
if
_type
(
s
)
is
not
_st
:
raise
s
o
=
get
(
oi
,
oi
)
if
o
is
not
oi
:
o
.
_p_serial
=
s
...
...
@@ -379,6 +380,7 @@ class Connection(ExportImport.ExportImport):
if
o
is
not
_None
:
o
.
_p_serial
=
s
else
:
for
oid
,
s
in
s
:
if
_type
(
s
)
is
not
_st
:
raise
s
o
=
get
(
oid
,
_None
)
if
o
is
not
_None
:
o
.
_p_serial
=
s
...
...
@@ -491,7 +493,8 @@ class Connection(ExportImport.ExportImport):
self
.
_storage
.
tpc_begin
(
transaction
)
def
tpc_vote
(
self
,
transaction
):
def
tpc_vote
(
self
,
transaction
,
_type
=
type
,
_st
=
type
(
''
)):
try
:
vote
=
self
.
_storage
.
tpc_vote
except
:
return
s
=
vote
(
transaction
)
...
...
@@ -500,6 +503,7 @@ class Connection(ExportImport.ExportImport):
for
oid
,
s
in
s
:
o
=
get
(
oid
,
oid
)
if
o
is
not
oid
:
if
_type
(
s
)
is
not
_st
:
raise
s
o
.
_p_serial
=
s
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