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
3155d1ad
Commit
3155d1ad
authored
Jun 16, 2003
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trimmed trailing whitespace.
parent
fba9c5e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+9
-9
No files found.
src/ZEO/ClientStorage.py
View file @
3155d1ad
...
...
@@ -164,7 +164,7 @@ class ClientStorage:
username -- string with username to be used when authenticating.
These only need to be provided if you are connecting to an
authenticated server storage.
password -- string with plaintext password to be used
when authenticated.
...
...
@@ -217,7 +217,7 @@ class ClientStorage:
# but _server is set only after cache verification has finished
# and clients can safely use the server. _pending_server holds
# a server stub while it is being verified.
self
.
_server
=
disconnected_stub
self
.
_connection
=
None
self
.
_pending_server
=
None
...
...
@@ -372,7 +372,7 @@ class ClientStorage:
# If there is no connection, return immediately. Technically,
# there are no pending invalidations so they are all handled.
# There doesn't seem to be much benefit to raising an exception.
cn
=
self
.
_connection
if
cn
is
not
None
:
cn
.
pending
()
...
...
@@ -394,12 +394,12 @@ class ClientStorage:
"%s: %s isn't a valid protocol, must have a Client class"
%
(
self
.
__class__
.
__name__
,
protocol
))
raise
AuthError
,
"invalid protocol"
c
=
client
(
stub
)
# Initiate authentication, returns boolean specifying whether OK
return
c
.
start
(
self
.
_username
,
self
.
_realm
,
self
.
_password
)
def
testConnection
(
self
,
conn
):
"""Internal: test the given connection.
...
...
@@ -434,7 +434,7 @@ class ClientStorage:
else
:
log2
(
ERROR
,
"Authentication failed"
)
raise
AuthError
,
"Authentication failed"
try
:
stub
.
register
(
str
(
self
.
_storage
),
self
.
_is_read_only
)
return
1
...
...
@@ -527,7 +527,7 @@ class ClientStorage:
# If verify_cache() finishes the cache verification process,
# it should set self._server. If it goes through full cache
# verification, then endVerify() should self._server.
last_inval_tid
=
self
.
_cache
.
getLastTid
()
if
last_inval_tid
is
not
None
:
ltid
=
server
.
lastTransaction
()
...
...
@@ -553,7 +553,7 @@ class ClientStorage:
self
.
_server
=
server
self
.
_ready
.
set
()
return
"quick verification"
log2
(
INFO
,
"Verifying cache"
)
# setup tempfile to hold zeoVerify results
self
.
_tfile
=
tempfile
.
TemporaryFile
(
suffix
=
".inv"
)
...
...
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