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
67463024
Commit
67463024
authored
Jan 28, 2022
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ingestion: except wrong format and log
parent
25f8a69b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
.../IngestionPolicy_getIngestionOperationAndParameterDict.py
+13
-5
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
View file @
67463024
...
...
@@ -121,13 +121,21 @@ for line in data_ingestion.objectValues(portal_type="Data Ingestion Line"):
elif
line
.
getResourceValue
().
getPortalType
()
==
"Data Operation"
:
operation_line
=
line
if
modify
and
input_line
.
getQuantity
()
==
0
:
init_input_line
(
input_line
,
operation_line
)
try
:
if
modify
and
input_line
.
getQuantity
()
==
0
:
init_input_line
(
input_line
,
operation_line
)
except
UnboundLocalError
:
if
resource_reference
==
'GENERIC-INTERVAL-RAW-ARRAY'
:
context
.
log
(
"Ignore data with wrong reference {}"
.
format
(
context
.
REQUEST
.
reference
))
return
portal
.
data_operation_module
.
wendelin_ignore_failed
,
{}
data_operation
=
operation_line
.
getResourceValue
()
parameter_dict
=
{
input_line
.
getReference
():
\
{
v
.
getPortalType
():
v
for
v
in
input_line
.
getAggregateValueList
()}}
try
:
parameter_dict
=
{
input_line
.
getReference
():
\
{
v
.
getPortalType
():
v
for
v
in
input_line
.
getAggregateValueList
()}}
except
UnboundLocalError
:
raise
UnboundLocalError
(
"local variable 'input_line' referenced before assignment. reference=%s"
%
reference
)
bucket_reference
=
movement_dict
.
get
(
'bucket_reference'
,
None
)
if
bucket_reference
is
not
None
:
parameter_dict
[
'bucket_reference'
]
=
bucket_reference
...
...
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