Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
b12dbdaf
Commit
b12dbdaf
authored
Apr 15, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5722638c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wcfs/__init__.py
wcfs/__init__.py
+3
-4
No files found.
wcfs/__init__.py
View file @
b12dbdaf
...
...
@@ -55,7 +55,6 @@ from golang import sync, context
from
golang.gcompat
import
qq
from
persistent
import
Persistent
from
ZODB.FileStorage
import
FileStorage
from
zodbtools.util
import
ashex
as
h
from
.client._wcfs
import
\
...
...
@@ -87,7 +86,7 @@ class WCFS(_WCFS):
# ---- WCFS raw file access
---- XXX -> wcfs_test.py ? (used only there)
# ---- WCFS raw file access
(primarily for tests) ----
# _path returns path for object on wcfs.
# - str: wcfs root + obj;
...
...
@@ -109,7 +108,7 @@ def _path(wc, obj, at=None):
@
func
(
WCFS
)
def
_read
(
wc
,
obj
,
at
=
None
):
path
=
wc
.
_path
(
obj
,
at
=
at
)
with
open
(
path
,
'rb'
)
as
f
:
# XXX -> readfile
with
open
(
path
,
'rb'
)
as
f
:
return
f
.
read
()
# _stat stats file corresponding to obj on wcfs.
...
...
@@ -308,7 +307,7 @@ def serve(zurl, optv, exec_=False):
mntpt
=
_mntpt_4zurl
(
zurl
)
# try opening .wcfs - it is an error if we can do it.
# XXX -> option to wcfs itself?
# XXX -> option to wcfs itself
to verify wcfs/something is already mounted
?
try
:
f
=
open
(
mntpt
+
"/.wcfs/zurl"
)
except
IOError
as
e
:
...
...
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