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
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
Paul Graydon
wendelin
Commits
8f1ae7c0
Commit
8f1ae7c0
authored
Nov 28, 2019
by
Eteri
Committed by
Levin Zimmermann
Jun 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start data ingestion only if corresponding data supply is validated
parent
4cba761d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/ERP5Site_createDataIngestion.py
...ortal_skins/erp5_wendelin/ERP5Site_createDataIngestion.py
+11
-1
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/ERP5Site_createDataIngestion.py
View file @
8f1ae7c0
...
...
@@ -29,9 +29,11 @@ property_dict["stop_date"] = composed.getExpirationDate()
data_ingestion
.
edit
(
**
property_dict
)
# create ingestion lines from specialise lines
for
supply_line
in
composed
.
objectValues
(
portal_type
=
'Data Supply Line'
):
current_line
=
data_ingestion
.
newContent
(
portal_type
=
"Data Ingestion Line"
,
title
=
supply_line
.
getTitle
(),
...
...
@@ -46,6 +48,14 @@ for supply_line in composed.objectValues(
# we set quantity=0 for the data product lines
current_line
.
setQuantity
(
0
)
data_ingestion
.
start
()
# start ingestion only if data supply is validated
data_supply_validated
=
True
for
specialise_path
in
specialise_list
:
specialise
=
portal
.
restrictedTraverse
(
specialise_path
)
if
specialise
.
getPortalType
()
==
"Data Supply"
:
if
specialise
.
getValidationState
()
!=
"validated"
:
data_supply_validated
=
False
if
data_supply_validated
:
data_ingestion
.
start
()
return
data_ingestion
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