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
a3f73429
Commit
a3f73429
authored
Mar 27, 2005
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused method and document new constructor arguments.
parent
408e93a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
branches/ctheune-blobsupport/src/ZEO/ClientStorage.py
branches/ctheune-blobsupport/src/ZEO/ClientStorage.py
+8
-5
No files found.
branches/ctheune-blobsupport/src/ZEO/ClientStorage.py
View file @
a3f73429
...
...
@@ -111,7 +111,8 @@ class ClientStorage(object):
wait_for_server_on_startup
=
None
,
# deprecated alias for wait
wait
=
None
,
wait_timeout
=
None
,
read_only
=
0
,
read_only_fallback
=
0
,
username
=
''
,
password
=
''
,
realm
=
None
,
blob_dir
=
"/tmp"
):
username
=
''
,
password
=
''
,
realm
=
None
,
blob_dir
=
tempfile
.
gettempdir
()):
"""ClientStorage constructor.
This is typically invoked from a custom_zodb.py file.
...
...
@@ -182,6 +183,11 @@ class ClientStorage(object):
password -- string with plaintext password to be used
when authenticated.
realm -- not documented.
blob_dir -- directory path for blob data. 'blob data' is data that
is retrieved via the loadBlob API.
Note that the authentication protocol is defined by the server
and is detected by the ClientStorage upon connecting (see
testConnection() and doAuth() for details).
...
...
@@ -909,11 +915,8 @@ class ClientStorage(object):
"""
return
self
.
_getCleanFilename
(
oid
,
serial
)
+
"."
+
BLOB_DIRTY
def
_getBlobPath
(
self
,
oid
):
return
self
.
blob_dir
def
_getCleanFilename
(
self
,
oid
,
tid
):
return
os
.
path
.
join
(
self
.
_getBlobPath
(
oid
)
,
return
os
.
path
.
join
(
self
.
blob_dir
,
"%s-%s%s"
%
(
utils
.
oid_repr
(
oid
),
utils
.
tid_repr
(
tid
),
BLOB_SUFFIX
,)
...
...
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