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
ddbd0185
Commit
ddbd0185
authored
Oct 01, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some nice docstrings.
parent
1471dc55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
src/ZEO/ServerStub.py
src/ZEO/ServerStub.py
+22
-2
No files found.
src/ZEO/ServerStub.py
View file @
ddbd0185
...
...
@@ -11,14 +11,35 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
"""
Stub for interface exposed by StorageServer
"""
"""
RPC stubs for interface exported by StorageServer.
"""
class
StorageServer
:
"""An RPC stub class for the interface exported by ClientStorage.
This is the interface presented by the StorageServer to the
ClientStorage; i.e. the ClientStorage calls these methods and they
are executed in the StorageServer.
See the StorageServer module for documentation on these methods,
with the exception of _update(), which is documented here.
"""
def
__init__
(
self
,
rpc
):
"""Constructor.
The argument is a connection: an instance of the
zrpc.connection.Connection class.
"""
self
.
rpc
=
rpc
def
_update
(
self
):
"""Handle pending incoming messages.
This method is typically only used when no asyncore mainloop
is already active. It can cause arbitrary callbacks from the
server to the client to be handled.
"""
self
.
rpc
.
pending
()
def
register
(
self
,
storage_name
,
read_only
):
...
...
@@ -103,7 +124,6 @@ class StorageServer:
return
self
.
rpc
.
call
(
'undo'
,
trans_id
)
def
undoLog
(
self
,
first
,
last
):
# XXX filter not allowed across RPC
return
self
.
rpc
.
call
(
'undoLog'
,
first
,
last
)
def
undoInfo
(
self
,
first
,
last
,
spec
):
...
...
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