Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
wendelin
Commits
fdcdaa1f
Commit
fdcdaa1f
authored
Sep 20, 2018
by
Klaus Wölfel
Committed by
Eteri
Jan 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data stream: add method to iterate over stream data
parent
79c107d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.py
...emplateItem/portal_components/document.erp5.DataStream.py
+8
-0
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.xml
...mplateItem/portal_components/document.erp5.DataStream.xml
+3
-1
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.py
View file @
fdcdaa1f
...
...
@@ -49,6 +49,14 @@ class DataStream(BigFile):
,
PropertySheet
.
SortIndex
)
def
iterate
(
self
,
start_offset
,
end_offset
):
"""
Read chunks of data from a Data Stream and yield them.
"""
data
=
self
.
_baseGetData
()
for
chunk
in
data
.
iterate
(
start_offset
,
end_offset
-
start_offset
):
yield
chunk
def
readChunkList
(
self
,
start_offset
,
end_offset
):
"""
Read chunks of data from a Data Stream and return them.
...
...
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.xml
View file @
fdcdaa1f
...
...
@@ -45,7 +45,9 @@
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
<tuple>
<string>
W: 71, 2: Arguments number differs from overridden \'appendData\' method (arguments-differ)
</string>
</tuple>
</value>
</item>
<item>
...
...
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