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
bb9fe0d8
Commit
bb9fe0d8
authored
Aug 28, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops. By renaming the callback methods I changed the wire protocol.
Change the wire protocol back by providing aliases.
parent
0964109a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+13
-1
src/ZEO/ClientStub.py
src/ZEO/ClientStub.py
+4
-4
No files found.
src/ZEO/ClientStorage.py
View file @
bb9fe0d8
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Network ZODB storage client
$Id: ClientStorage.py,v 1.5
3 2002/08/28 18:59:06
gvanrossum Exp $
$Id: ClientStorage.py,v 1.5
4 2002/08/28 21:17:30
gvanrossum Exp $
"""
# XXX TO DO
...
...
@@ -508,3 +508,15 @@ class ClientStorage:
"Invalidate(%s, %s) failed for _db: %s"
%
(
repr
(
oid
),
repr
(
version
),
msg
))
# Unfortunately, the ZEO 2 wire protocol uses different names for
# several of the callback methods invoked by the StorageServer.
# We can't change the wire protocol at this point because that
# would require synchronized updates of clients and servers and we
# don't want that. So here we alias the old names to their new
# implementations.
begin
=
beginVerify
invalidate
=
invalidateVerify
end
=
endVerify
Invalidate
=
invalidateTrans
src/ZEO/ClientStub.py
View file @
bb9fe0d8
...
...
@@ -18,16 +18,16 @@ class ClientStorage:
self
.
rpc
=
rpc
def
beginVerify
(
self
):
self
.
rpc
.
callAsync
(
'begin
Verify
'
)
self
.
rpc
.
callAsync
(
'begin'
)
def
invalidateVerify
(
self
,
args
):
self
.
rpc
.
callAsync
(
'invalidate
Verify
'
,
args
)
self
.
rpc
.
callAsync
(
'invalidate'
,
args
)
def
endVerify
(
self
):
self
.
rpc
.
callAsync
(
'end
Verify
'
)
self
.
rpc
.
callAsync
(
'end'
)
def
invalidateTrans
(
self
,
args
):
self
.
rpc
.
callAsync
(
'
invalidateTrans
'
,
args
)
self
.
rpc
.
callAsync
(
'
Invalidate
'
,
args
)
def
serialnos
(
self
,
arg
):
self
.
rpc
.
callAsync
(
'serialnos'
,
arg
)
...
...
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