Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
klaus_wendelin
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eteri
klaus_wendelin
Commits
13800642
Commit
13800642
authored
Jun 15, 2022
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin: Fix item access of Index*Sequence
(in restricted python)
parent
ed1a301f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataBucketStream.py
...eItem/portal_components/document.erp5.DataBucketStream.py
+17
-0
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataBucketStream.py
View file @
13800642
...
...
@@ -26,6 +26,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import
hashlib
from
BTrees.OOBTree
import
OOBTree
from
BTrees.LOBTree
import
LOBTree
...
...
@@ -34,6 +35,7 @@ from erp5.component.document.Document import Document
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
erp5.component.module.BTreeData
import
PersistentString
from
erp5.component.module.Log
import
log
from
AccessControl.ZopeGuards
import
ContainerAssertions
class
IndexSequence
(
object
):
...
...
@@ -412,3 +414,18 @@ class DataBucketStream(Document):
self
.
initIndexTree
()
for
count
,
key
in
enumerate
(
self
.
getBucketKeySequenceByKey
()):
self
.
_long_index_tree
.
insert
(
count
,
key
)
# Allow iteration over IndexSequence based classes
# in restricted python.
for
index_class
in
(
IndexSequence
,
IndexKeySequence
,
IndexValueSequence
,
IndexItemSequence
,
IndexKeyItemSequence
,
):
ContainerAssertions
[
index_class
]
=
1
# Cleanup
del
index_class
\ No newline at end of file
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