Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
e79b6d1c
Commit
e79b6d1c
authored
Dec 11, 2000
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make client caches respect CLIENT_HOME
parent
88c9cabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/ZEO/ClientCache.py
src/ZEO/ClientCache.py
+5
-3
No files found.
src/ZEO/ClientCache.py
View file @
e79b6d1c
...
@@ -144,7 +144,7 @@ file 0 and file 1.
...
@@ -144,7 +144,7 @@ file 0 and file 1.
"""
"""
__version__
=
"$Revision: 1.1
3
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.1
4
$"
[
11
:
-
2
]
import
os
,
tempfile
import
os
,
tempfile
from
struct
import
pack
,
unpack
from
struct
import
pack
,
unpack
...
@@ -164,8 +164,10 @@ class ClientCache:
...
@@ -164,8 +164,10 @@ class ClientCache:
if
client
:
if
client
:
# Create a persistent cache
# Create a persistent cache
if
var
is
None
:
if
var
is
None
:
try
:
var
=
os
.
path
.
join
(
INSTANCE_HOME
,
'var'
)
try
:
var
=
CLIENT_HOME
except
:
var
=
os
.
getcwd
()
except
:
try
:
var
=
os
.
path
.
join
(
INSTANCE_HOME
,
'var'
)
except
:
var
=
os
.
getcwd
()
# Get the list of cache file names
# Get the list of cache file names
self
.
_p
=
p
=
map
(
lambda
i
,
p
=
storage
,
var
=
var
,
c
=
client
:
self
.
_p
=
p
=
map
(
lambda
i
,
p
=
storage
,
var
=
var
,
c
=
client
:
...
...
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