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
b6eb4ae8
Commit
b6eb4ae8
authored
Oct 02, 2003
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
b4ade1c9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
src/ThreadedAsync/LoopCallback.py
src/ThreadedAsync/LoopCallback.py
+4
-4
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+1
-1
src/ZEO/tests/auth_plaintext.py
src/ZEO/tests/auth_plaintext.py
+1
-1
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+2
-2
src/ZODB/FileStorage.py
src/ZODB/FileStorage.py
+2
-2
src/ZODB/fspack.py
src/ZODB/fspack.py
+1
-1
No files found.
src/ThreadedAsync/LoopCallback.py
View file @
b6eb4ae8
...
...
@@ -25,7 +25,7 @@ register_loop_callback() to register interest. When the mainloop
thread calls loop(), each registered callback will be called with the
socket map as its first argument.
"""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
asyncore
import
select
...
...
@@ -57,17 +57,17 @@ def register_loop_callback(callback, args=(), kw=None):
_loop_callbacks
.
append
((
callback
,
args
,
kw
))
finally
:
_loop_lock
.
release
()
def
remove_loop_callback
(
callback
):
"""Remove a callback function registered earlier.
This is useful if loop() was never called.
"""
for
i
in
range
(
len
(
_loop_callbacks
)):
if
_loop_callbacks
[
i
][
0
]
==
callback
:
del
_loop_callbacks
[
i
]
return
def
_start_loop
(
map
):
_loop_lock
.
acquire
()
try
:
...
...
src/ZEO/StorageServer.py
View file @
b6eb4ae8
...
...
@@ -679,7 +679,7 @@ class StorageServer:
auth_protocol -- The name of the authentication protocol to use.
Examples are "digest" and "srp".
auth_database -- The name of the password database filename.
It should be in a format compatible with the authentication
protocol used; for instance, "sha" and "srp" require different
...
...
src/ZEO/tests/auth_plaintext.py
View file @
b6eb4ae8
...
...
@@ -41,7 +41,7 @@ class StorageClass(ZEOStorage):
self
.
database
.
realm
,
password
))
return
self
.
finish_auth
(
dbpw
==
password_dig
)
class
PlaintextClient
(
Client
):
extensions
=
[
"auth"
]
...
...
src/ZEO/zrpc/smac.py
View file @
b6eb4ae8
...
...
@@ -101,7 +101,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
# previous MAC; the state of the MAC generator depends on the
# history of operations it has performed. So the MACs must be
# generated in the same order they are verified.
# Each side is guaranteed to receive messages in the order
# they are sent, but there is no ordering constraint between
# message sends and receives. If the two sides are A and B
...
...
@@ -116,7 +116,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
# could not be verified.
self
.
__hmac_send
=
None
self
.
__hmac_recv
=
None
self
.
__super_init
(
sock
,
map
)
def
setSessionKey
(
self
,
sesskey
):
...
...
src/ZODB/FileStorage.py
View file @
b6eb4ae8
...
...
@@ -115,7 +115,7 @@
# may have a back pointer to a version record or to a non-version
# record.
#
__version__
=
'$Revision: 1.13
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.13
9
$'
[
11
:
-
2
]
import
base64
from
cPickle
import
Pickler
,
Unpickler
,
loads
...
...
@@ -1531,7 +1531,7 @@ class FileStorage(BaseStorage.BaseStorage,
"""
if
self
.
_is_read_only
:
raise
POSException
.
ReadOnlyError
()
stop
=
`TimeStamp(*time.gmtime(t)[:5]+(t%60,))`
if
stop
==
z64
:
raise
FileStorageError
,
'Invalid pack time'
...
...
src/ZODB/fspack.py
View file @
b6eb4ae8
...
...
@@ -648,7 +648,7 @@ class FileStoragePacker(FileStorageFormatter):
# tindex: oid -> pos, for current txn
# tvindex: version -> pos of XXX, for current txn
# oid2serial: not used by the packer
self
.
index
=
fsIndex
()
self
.
vindex
=
{}
self
.
tindex
=
{}
...
...
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