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
09310101
Commit
09310101
authored
Nov 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9c0ea7e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
wcfs/__init__.py
wcfs/__init__.py
+3
-1
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+4
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+5
-4
No files found.
wcfs/__init__.py
View file @
09310101
...
...
@@ -60,7 +60,9 @@ from ZODB.utils import z64, u64, p64
from
zodbtools.util
import
ashex
as
h
,
fromhex
from
.internal
import
mm
from
.internal._wcfs
import
PyWatchLink
as
WatchLink
from
.internal._wcfs
import
\
PyWatchLink
as
WatchLink
,
\
PyPinReq
as
PinReq
\
from
six
import
reraise
...
...
wcfs/internal/_wcfs.pyx
View file @
09310101
...
...
@@ -25,3 +25,7 @@
cdef
class
PyWatchLink
:
pass
cdef
class
PyPinReq
:
pass
wcfs/wcfs_test.py
View file @
09310101
...
...
@@ -732,16 +732,17 @@ class tWatchLink(wcfs.WatchLink):
t
.
tdb
.
_wlinks
.
remove
(
t
)
super
(
tWatchLink
,
t
).
close
()
# recvReq is the same as WatchLink.recvReq but returns tSrvReq instead of
Srv
Req.
# recvReq is the same as WatchLink.recvReq but returns tSrvReq instead of
Pin
Req.
def
recvReq
(
t
,
ctx
):
# -> tSrvReq | None when EOF
req
=
super
(
tWatchLink
,
t
).
recvReq
(
ctx
)
if
req
is
not
None
:
assert
req
.
__class__
is
wcfs
.
Srv
Req
assert
req
.
__class__
is
wcfs
.
Pin
Req
req
.
__class__
=
tSrvReq
return
req
class
tSrvReq
(
wcfs
.
SrvReq
):
# _parse is the same as SrvReq._parse, but returns at wrapped with tAt.
class
tSrvReq
(
wcfs
.
PinReq
):
# _parse is the same as PinReq._parse, but returns at wrapped with tAt.
# XXX -> just wrap `at`
def
_parse
(
req
):
# -> (foid, blk, at|None)
foid
,
blk
,
at
=
super
(
tSrvReq
,
req
).
_parse
()
if
at
is
not
None
:
...
...
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