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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
d793fdaf
Commit
d793fdaf
authored
Jun 27, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8fd9d48c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
wcfs/__init__.py
wcfs/__init__.py
+5
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+1
-1
No files found.
wcfs/__init__.py
View file @
d793fdaf
...
...
@@ -37,11 +37,11 @@ from ZODB.FileStorage import FileStorage
class
WCFS
(
object
):
# XXX + .zurl?
# .mountpoint path to mountpoint
# ._fwcfs /.wcfs opened
# ._fwcfs /.wcfs opened
to keep the server from going away (at least cleanly)
def
__init__
(
self
,
mountpoint
):
def
__init__
(
self
,
mountpoint
,
fwcfs
):
self
.
mountpoint
=
mountpoint
# XXX open a file to keep the server from going away (at least cleanly)
self
.
_fwcfs
=
fwcfs
# serve starts and runs wcfs server for ZODB @ zurl.
...
...
@@ -160,6 +160,7 @@ def _start(zurl):
if
e
.
errno
!=
ENOENT
:
raise
else
:
# TODO read .wcfs and verify it = zurl
res
=
f
break
...
...
@@ -193,7 +194,7 @@ def _start(zurl):
err
=
_rx
if
_
==
1
:
if
not
isinstance
(
_rx
,
file
):
if
isinstance
(
_rx
,
file
):
# mounted ok - return WCFS object
f
=
_rx
startedok
.
close
()
...
...
wcfs/wcfs_test.py
View file @
d793fdaf
...
...
@@ -40,7 +40,7 @@ def test_join():
wcfs
.
join
(
zurl
,
autostart
=
False
)
wc
=
wcfs
.
_start
(
zurl
)
assert
isinstance
(
wcfs
.
WCFS
)
assert
isinstance
(
wc
,
wc
fs
.
WCFS
)
#wc = wcfs.join(zurl, autostart=False)
...
...
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