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
6235cb9c
Commit
6235cb9c
authored
Dec 16, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bf3c302b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+6
-9
bigfile/file_zodb.py
bigfile/file_zodb.py
+1
-1
setup.py
setup.py
+0
-1
No files found.
bigfile/_file_zodb.pyx
View file @
6235cb9c
...
...
@@ -50,23 +50,20 @@ cdef extern from *:
ctypedef
extern
class
wendelin
.
bigfile
.
_bigfile
.
BigFile
[
object
CXXPyBigFile
]:
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)
cdef
class
_ZBigFile
(
BigFile
):
# .zself - reference to ZBigFile
#cdef class _ZBigFile:
cdef
object
zself
# reference to ZBigFile
"""
def __new__(cls, zself, blksize):
obj = BigFile.__new__(cls, blksize)
# XXX Cython does not allow __new__ nor to change arguments passed to __cinit__ / __init__
@
staticmethod
def
_new
(
zself
,
blksize
):
cdef
_ZBigFile
obj
=
_ZBigFile
.
__new__
(
_ZBigFile
,
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
)
...
...
bigfile/file_zodb.py
View file @
6235cb9c
...
...
@@ -546,7 +546,7 @@ class ZBigFile(LivePersistent):
def
__setstate__
(
self
,
state
):
self
.
blksize
,
self
.
blktab
=
state
self
.
_v_file
=
_ZBigFile
(
self
,
self
.
blksize
)
self
.
_v_file
=
_ZBigFile
.
_new
(
self
,
self
.
blksize
)
self
.
_v_filehset
=
WeakSet
()
...
...
setup.py
View file @
6235cb9c
...
...
@@ -268,7 +268,6 @@ setup(
PyGoExt
(
'wendelin.bigfile._file_zodb'
,
[
'bigfile/_file_zodb.pyx'
],
extra_compile_args
=
[
'-fplan9-extensions'
,
# anonymous-structs + simple inheritance
'-std=gnu++11'
,
# not c++11 since we use typeof
]),
...
...
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