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
a00a9e5b
Commit
a00a9e5b
authored
Dec 05, 2017
by
Julien Muchembled
Committed by
Ivan Tyagov
Jul 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WWM Mic Wind: do not delay ingestion for some turbines
parent
8bd2c0a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.py
...emplateItem/portal_components/document.erp5.DataStream.py
+4
-0
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.py
View file @
a00a9e5b
...
...
@@ -63,6 +63,10 @@ class DataStream(BigFile):
def
appendData
(
self
,
data_chunk
):
db
=
self
.
getPortalObject
().
erp5_sql_connection
()
if
self
.
getId
()
in
(
'150'
,
'152'
,
'154'
,
'156'
):
# WARNING: This precaution is not enough because there can still be a
# race condition between a zope using the old code and another
# using the new code, when the table does not contain any data
# yet for this stream.
if
not
db
.
query
(
'SELECT 1 FROM data_stream_queue WHERE uid=%s'
%
self
.
getUid
(),
max_rows
=
1
)[
1
]:
BigFile
.
appendData
(
self
,
data_chunk
)
...
...
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