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
c75743ef
Commit
c75743ef
authored
Sep 20, 2018
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data stream: add method to iterate over stream data
parent
01d7ea38
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 @
c75743ef
...
...
@@ -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 @
c75743ef
...
...
@@ -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