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
Léo-Paul Géneau
wendelin
Commits
ebb7df6d
Commit
ebb7df6d
authored
Mar 11, 2019
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin: remove destination section reference from movement dict
parent
ff239742
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
.../IngestionPolicy_getIngestionOperationAndParameterDict.py
+1
-7
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
View file @
ebb7df6d
...
...
@@ -8,17 +8,13 @@ portal_catalog = portal.portal_catalog
data_ingestion_reference
=
movement_dict
.
get
(
'reference'
,
reference
)
resource_reference
=
movement_dict
.
get
(
'resource_reference'
,
None
)
specialise_reference
=
movement_dict
.
get
(
'specialise_reference'
,
None
)
destination_section_reference
=
movement_dict
.
get
(
'destination_section_reference'
,
None
)
data_ingestion_id
=
"%s-%s-%s"
%
(
today_string
,
destination_section_reference
,
data_ingestion_reference
)
data_ingestion_id
=
"%s-%s"
%
(
today_string
,
data_ingestion_reference
)
data_ingestion_query_kw
=
dict
(
portal_type
=
'Data Ingestion'
,
simulation_state
=
[
'started'
,
'stopped'
],
reference
=
data_ingestion_reference
)
if
destination_section_reference
is
not
None
:
data_ingestion_query_kw
[
"destination_section_reference"
]
=
destination_section_reference
# first search for applicable data ingestion
data_ingestion
=
portal_catalog
.
getResultValue
(
**
data_ingestion_query_kw
)
...
...
@@ -105,8 +101,6 @@ if modify and data_ingestion is None:
specialise_query_kw
=
dict
(
portal_type
=
'Data Supply'
,
reference
=
specialise_reference
,
validation_state
=
'validated'
)
if
destination_section_reference
is
not
None
:
specialise_query_kw
[
"destination_section_reference"
]
=
destination_section_reference
specialise_list
=
[
x
.
getRelativeUrl
()
for
x
in
portal_catalog
(
**
specialise_query_kw
)]
...
...
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