Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
telecom
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Roque
telecom
Commits
5e53a1ab
Commit
5e53a1ab
authored
Jul 30, 2018
by
Roque Porchetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin_telecom_ingestion: fix handle invalid data streams
parent
974fc6ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
bt5/erp5_wendelin_telecom_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_telecom/Alarm_handleInvalids.py
...ortal_skins/erp5_wendelin_telecom/Alarm_handleInvalids.py
+7
-7
No files found.
bt5/erp5_wendelin_telecom_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_telecom/Alarm_handleInvalids.py
View file @
5e53a1ab
...
@@ -22,15 +22,15 @@ for data_set in portal_catalog(**kw_dict):
...
@@ -22,15 +22,15 @@ for data_set in portal_catalog(**kw_dict):
log
(
"Invalidating data set"
)
log
(
"Invalidating data set"
)
data_set
.
setReference
(
data_set
.
getReference
()
+
"_invalid"
)
data_set
.
setReference
(
data_set
.
getReference
()
+
"_invalid"
)
# data
array
s
# data
stream
s
kw_dict
=
{
"portal_type"
:
"Data
Array
"
,
kw_dict
=
{
"portal_type"
:
"Data
Stream
"
,
"validation_state"
:
"Invalidated"
}
"validation_state"
:
"Invalidated"
}
for
data_
array
in
portal_catalog
(
**
kw_dict
):
for
data_
stream
in
portal_catalog
(
**
kw_dict
):
if
not
data_
array
.
getReference
().
endswith
(
"_invalid"
):
if
not
data_
stream
.
getReference
().
endswith
(
"_invalid"
):
log
(
"Ivalid Data
Array: "
+
str
(
data_array
.
getReference
()))
log
(
"Ivalid Data
Stream: "
+
str
(
data_stream
.
getReference
()))
context
.
logEntry
(
"Ivalid Data
Array: "
+
str
(
data_array
.
getReference
()))
context
.
logEntry
(
"Ivalid Data
Stream: "
+
str
(
data_stream
.
getReference
()))
portal
.
ERP5Site_invalidateIngestionObjects
(
data_
array
.
getReference
())
portal
.
ERP5Site_invalidateIngestionObjects
(
data_
stream
.
getReference
())
...
...
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