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
8dab9f7f
Commit
8dab9f7f
authored
Dec 16, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6a717cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+15
-2
No files found.
bigfile/_file_zodb.pyx
View file @
8dab9f7f
...
@@ -18,20 +18,33 @@
...
@@ -18,20 +18,33 @@
#
#
# See COPYING file for full licensing terms.
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
# See https://www.nexedi.com/licensing for rationale and options.
# cython: language_level=2
# distutils: language=c++
"""XXX"""
"""XXX"""
from
wendelin.bigfile
import
BigFile
#from wendelin.bigfile import BigFile
cdef
extern
from
"bigfile/_bigfile.h"
:
ctypedef
extern
class
_bigfile
.
BigFile
[
object
PyBigFile
]:
pass
# helper for ZBigFile - just redirect loadblk/storeblk back
# helper for ZBigFile - just redirect loadblk/storeblk back
# (because it is not possible to inherit from both Persistent and BigFile at
# (because it is not possible to inherit from both Persistent and BigFile at
# the same time - see below)
# the same time - see below)
class
_ZBigFile
(
BigFile
):
c
def
c
lass
_ZBigFile
(
BigFile
):
# .zself - reference to ZBigFile
# .zself - reference to ZBigFile
"""
def __new__(cls, zself, blksize):
def __new__(cls, zself, blksize):
obj = BigFile.__new__(cls, blksize)
obj = BigFile.__new__(cls, blksize)
obj.zself = zself
obj.zself = zself
return obj
return obj
"""
def
__cinit__
(
self
,
zself
,
blksize
):
BigFile
.
__cinit__
(
self
,
blksize
)
self
.
zself
=
zself
# redirect load/store/mapper to main class
# redirect load/store/mapper to main class
def
loadblk
(
self
,
blk
,
buf
):
return
self
.
zself
.
loadblk
(
blk
,
buf
)
def
loadblk
(
self
,
blk
,
buf
):
return
self
.
zself
.
loadblk
(
blk
,
buf
)
...
...
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