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
362dbf6e
Commit
362dbf6e
authored
Nov 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
aee82981
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
wcfs/__init__.py
wcfs/__init__.py
+2
-1
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+9
-2
No files found.
wcfs/__init__.py
View file @
362dbf6e
...
...
@@ -61,6 +61,7 @@ from zodbtools.util import ashex as h, fromhex
from
.internal
import
mm
from
.internal._wcfs
import
\
PyWCFS
as
_WCFS
,
\
PyWatchLink
as
WatchLink
,
\
PyPinReq
as
PinReq
\
...
...
@@ -78,7 +79,7 @@ from six import reraise
# Raw files on wcfs can be accessed with ._path/._read/._stat/._open .
#
# WCFS logically mirrors ZODB.DB .
class
WCFS
(
object
):
class
WCFS
(
_WCFS
):
# .mountpoint path to wcfs mountpoint
# ._fwcfs /.wcfs/zurl opened to keep the server from going away (at least cleanly)
# ._njoin this connection was returned for so many joins
...
...
wcfs/internal/_wcfs.pyx
View file @
362dbf6e
...
...
@@ -46,21 +46,28 @@ ctypedef WatchLink *pWatchLink # https://github.com/cython/cython/issues/534
cdef
extern
from
"wcfs.h"
nogil
:
cppclass
WCFS
:
string
mountpoint
pair
[
pWatchLink
,
error
]
_openwatch
()
# XXX pair instead of tuple
from
golang
cimport
topyexc
cdef
class
PyWCFS
:
cdef
WCFS
*
wc
cdef
WCFS
wc
property
mountpoint
:
def
__get__
(
PyWCFS
pywc
):
return
pywc
.
wc
.
mountpoint
def
__set__
(
PyWCFS
pywc
,
string
v
):
pywc
.
wc
.
mountpoint
=
v
cdef
class
PyWatchLink
:
cdef
WatchLink
*
wlink
def
__init__
(
PyWatchLink
pywlink
,
PyWCFS
pywc
):
with
nogil
:
_
=
wcfs_openwatch_pyexc
(
pywc
.
wc
)
_
=
wcfs_openwatch_pyexc
(
&
pywc
.
wc
)
pywlink
.
wlink
=
_
.
first
err
=
_
.
second
...
...
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