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
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 @@
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
# cython: language_level=2
# distutils: language=c++
"""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
# (because it is not possible to inherit from both Persistent and BigFile at
# the same time - see below)
class
_ZBigFile
(
BigFile
):
c
def
c
lass
_ZBigFile
(
BigFile
):
# .zself - reference to ZBigFile
"""
def __new__(cls, zself, blksize):
obj = BigFile.__new__(cls, blksize)
obj.zself = zself
return obj
"""
def
__cinit__
(
self
,
zself
,
blksize
):
BigFile
.
__cinit__
(
self
,
blksize
)
self
.
zself
=
zself
# redirect load/store/mapper to main class
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