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
dc6f2924
Commit
dc6f2924
authored
Nov 29, 2019
by
Eteri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup - start data ingestion only if corresponding data supply is validated
parent
34aec1ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/ERP5Site_createDataIngestion.py
...ortal_skins/erp5_wendelin/ERP5Site_createDataIngestion.py
+6
-3
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/ERP5Site_createDataIngestion.py
View file @
dc6f2924
...
...
@@ -29,13 +29,11 @@ property_dict["stop_date"] = composed.getExpirationDate()
data_ingestion
.
edit
(
**
property_dict
)
data_supply_validated
=
True
# create ingestion lines from specialise lines
for
supply_line
in
composed
.
objectValues
(
portal_type
=
'Data Supply Line'
):
if
supply_line
.
getParentValue
().
getValidationState
()
!=
"validated"
:
data_supply_validated
=
False
current_line
=
data_ingestion
.
newContent
(
portal_type
=
"Data Ingestion Line"
,
title
=
supply_line
.
getTitle
(),
...
...
@@ -51,6 +49,11 @@ for supply_line in composed.objectValues(
current_line
.
setQuantity
(
0
)
# start ingestion only if data supply is validated
data_supply_validated
=
True
for
specialise
in
specialise_list
:
if
specialise
.
getPortalType
()
==
"Data Supply"
:
if
specialise
.
getValidationState
()
!=
"validated"
:
data_supply_validated
=
False
if
data_supply_validated
:
data_ingestion
.
start
()
...
...
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