Commit 35c7ae8b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 55e234f5
No preview for this file type
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
from ZODB.DB import DB from ZODB.DB import DB
from ZODB.utils import u64 from ZODB.utils import u64
from wendelin.bigfile.file_zodb import ZBlk0, ZBlk1, ZBigFile from wendelin.bigfile.file_zodb import ZBlk0, ZBlk1, ZBigFile
from numpy import arange, uint32 from numpy import arange
import os, os.path, transaction import os, os.path, transaction
blksize = 2*1024*1024 # XXX hardcoded blksize = 2*1024*1024 # XXX hardcoded
...@@ -40,7 +40,7 @@ def main(): ...@@ -40,7 +40,7 @@ def main():
root = conn.root() root = conn.root()
# 0, 1, 2, ... as u32 # 0, 1, 2, ... as u32
data = arange(0, blksize32, dtype=uint32).tobytes() data = arange(0, blksize32, dtype='>u4').tobytes()
root['zblk0'] = z0 = ZBlk0() root['zblk0'] = z0 = ZBlk0()
root['zblk1'] = z1 = ZBlk1() # also covers ZData root['zblk1'] = z1 = ZBlk1() # also covers ZData
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment