Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
preetwinder
erp5
Commits
c1b09c5e
Commit
c1b09c5e
authored
May 31, 2012
by
Vincent Pelletier
Committed by
Sebastien Robin
Aug 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a pseudo-private property for the chunk tree.
parent
350b754b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5Type/BTreeData.py
product/ERP5Type/BTreeData.py
+4
-4
No files found.
product/ERP5Type/BTreeData.py
View file @
c1b09c5e
...
...
@@ -11,11 +11,11 @@ class PersistentString(Persistent):
class
BTreeData
(
Persistent
):
def
__init__
(
self
):
self
.
tree
=
LOBTree
()
self
.
_
tree
=
LOBTree
()
def
write
(
self
,
buf
,
offset
):
# TODO: auto-aggregation of continuous keys when overwriting
tree
=
self
.
tree
tree
=
self
.
_
tree
buf_len
=
len
(
buf
)
try
:
lower_key
=
tree
.
maxKey
(
offset
)
...
...
@@ -53,7 +53,7 @@ class BTreeData(Persistent):
def
read
(
self
,
offset
,
size
):
start_offset
=
offset
tree
=
self
.
tree
tree
=
self
.
_
tree
try
:
key
=
tree
.
maxKey
(
offset
)
except
ValueError
:
...
...
@@ -82,7 +82,7 @@ class BTreeData(Persistent):
return
result
.
getvalue
()
def
truncate
(
self
,
offset
):
tree
=
self
.
tree
tree
=
self
.
_
tree
try
:
key
=
tree
.
maxKey
(
offset
)
except
ValueError
:
...
...
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