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
763291b1
Commit
763291b1
authored
Jun 08, 2007
by
Christian Theune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed typos
parent
c7a04601
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+3
-3
src/ZEO/ClientStub.py
src/ZEO/ClientStub.py
+3
-3
src/ZEO/zrpc/connection.py
src/ZEO/zrpc/connection.py
+3
-3
No files found.
src/ZEO/ClientStorage.py
View file @
763291b1
...
@@ -940,7 +940,7 @@ class ClientStorage(object):
...
@@ -940,7 +940,7 @@ class ClientStorage(object):
return
True
return
True
return
False
return
False
def
rec
ie
veBlobStart
(
self
,
oid
,
serial
):
def
rec
ei
veBlobStart
(
self
,
oid
,
serial
):
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
assert
not
os
.
path
.
exists
(
blob_filename
)
assert
not
os
.
path
.
exists
(
blob_filename
)
assert
os
.
path
.
exists
(
blob_filename
+
'.lock'
)
assert
os
.
path
.
exists
(
blob_filename
+
'.lock'
)
...
@@ -949,14 +949,14 @@ class ClientStorage(object):
...
@@ -949,14 +949,14 @@ class ClientStorage(object):
f
=
open
(
blob_filename
,
'wb'
)
f
=
open
(
blob_filename
,
'wb'
)
f
.
close
()
f
.
close
()
def
rec
ie
veBlobChunk
(
self
,
oid
,
serial
,
chunk
):
def
rec
ei
veBlobChunk
(
self
,
oid
,
serial
,
chunk
):
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
+
'.dl'
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
+
'.dl'
assert
os
.
path
.
exists
(
blob_filename
)
assert
os
.
path
.
exists
(
blob_filename
)
f
=
open
(
blob_filename
,
'ab'
)
f
=
open
(
blob_filename
,
'ab'
)
f
.
write
(
chunk
)
f
.
write
(
chunk
)
f
.
close
()
f
.
close
()
def
rec
ie
veBlobStop
(
self
,
oid
,
serial
):
def
rec
ei
veBlobStop
(
self
,
oid
,
serial
):
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
blob_filename
=
self
.
fshelper
.
getBlobFilename
(
oid
,
serial
)
os
.
rename
(
blob_filename
+
'.dl'
,
blob_filename
)
os
.
rename
(
blob_filename
+
'.dl'
,
blob_filename
)
...
...
src/ZEO/ClientStub.py
View file @
763291b1
...
@@ -64,14 +64,14 @@ class ClientStorage:
...
@@ -64,14 +64,14 @@ class ClientStorage:
def
storeBlob
(
self
,
oid
,
serial
,
blobfilename
):
def
storeBlob
(
self
,
oid
,
serial
,
blobfilename
):
def
store
():
def
store
():
yield
(
'rec
ie
veBlobStart'
,
(
oid
,
serial
))
yield
(
'rec
ei
veBlobStart'
,
(
oid
,
serial
))
f
=
open
(
blobfilename
,
'rb'
)
f
=
open
(
blobfilename
,
'rb'
)
while
1
:
while
1
:
chunk
=
f
.
read
(
59000
)
chunk
=
f
.
read
(
59000
)
if
not
chunk
:
if
not
chunk
:
break
break
yield
(
'rec
ie
veBlobChunk'
,
(
oid
,
serial
,
chunk
,
))
yield
(
'rec
ei
veBlobChunk'
,
(
oid
,
serial
,
chunk
,
))
f
.
close
()
f
.
close
()
yield
(
'rec
ie
veBlobStop'
,
(
oid
,
serial
))
yield
(
'rec
ei
veBlobStop'
,
(
oid
,
serial
))
self
.
rpc
.
callAsyncIterator
(
store
())
self
.
rpc
.
callAsyncIterator
(
store
())
src/ZEO/zrpc/connection.py
View file @
763291b1
...
@@ -311,9 +311,9 @@ class Connection(smac.SizedMessageAsyncConnection, object):
...
@@ -311,9 +311,9 @@ class Connection(smac.SizedMessageAsyncConnection, object):
# storeBlobEnd
# storeBlobEnd
# storeBlobShared
# storeBlobShared
# Added blob-support client methods:
# Added blob-support client methods:
# rec
ie
veBlobStart
# rec
ei
veBlobStart
# rec
ie
veBlobChunk
# rec
ei
veBlobChunk
# rec
ie
veBlobStop
# rec
ei
veBlobStop
# XXX add blob methods
# XXX add blob methods
...
...
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