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
3
Merge Requests
3
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
nexedi
wendelin
Commits
7fb14dc7
Commit
7fb14dc7
authored
Jul 19, 2024
by
Paul Graydon
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin: Improve error handling in ingestion script
See merge request
!165
parent
eb4706e9
Pipeline
#36256
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
.../IngestionPolicy_getIngestionOperationAndParameterDict.py
+8
-0
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
View file @
7fb14dc7
from
DateTime
import
DateTime
from
zExceptions
import
NotFound
now
=
DateTime
()
today_string
=
now
.
strftime
(
'%Y%m%d'
)
...
...
@@ -116,16 +117,23 @@ if modify and data_ingestion is None:
# find ingestion line for current resource
input_line
=
None
operation_line
=
None
for
line
in
data_ingestion
.
objectValues
(
portal_type
=
"Data Ingestion Line"
):
if
line
.
getResourceReference
()
==
resource_reference
:
input_line
=
line
elif
line
.
getResourceValue
().
getPortalType
()
==
"Data Operation"
:
operation_line
=
line
if
input_line
is
None
:
raise
NotFound
(
'No relevant data ingestion line found.'
)
if
modify
and
input_line
.
getQuantity
()
==
0
:
init_input_line
(
input_line
,
operation_line
)
if
operation_line
is
None
:
raise
NotFound
(
'No relevant data operation found.'
)
data_operation
=
operation_line
.
getResourceValue
()
parameter_dict
=
{
input_line
.
getReference
():
\
{
v
.
getPortalType
():
v
for
v
in
input_line
.
getAggregateValueList
()}}
...
...
Paul Graydon
@paul.graydon
mentioned in merge request
!165 (closed)
·
Aug 07, 2024
mentioned in merge request
!165 (closed)
mentioned in merge request !165
Toggle commit list
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