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
075059cf
Commit
075059cf
authored
Oct 25, 2018
by
Roque Porchetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin_telecom_ingestion: minor fix in dataset invalidation script
parent
94e6e46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_wendelin_telecom_ingestion/WorkflowTemplateItem/portal_workflow/validation_workflow/scripts/Action_invalidateRelatedObjects.py
...ation_workflow/scripts/Action_invalidateRelatedObjects.py
+3
-2
No files found.
bt5/erp5_wendelin_telecom_ingestion/WorkflowTemplateItem/portal_workflow/validation_workflow/scripts/Action_invalidateRelatedObjects.py
View file @
075059cf
...
@@ -7,13 +7,14 @@ object = state_change['object']
...
@@ -7,13 +7,14 @@ object = state_change['object']
if
object
.
getPortalType
()
==
"Data Set"
:
if
object
.
getPortalType
()
==
"Data Set"
:
data_set
=
object
data_set
=
object
context
.
logEntry
(
"Invalidating data set '%s' and dependencies."
%
data_set
.
getReference
())
context
.
logEntry
(
"Invalidating data set '%s' and dependencies."
%
data_set
.
getReference
())
data_set
.
setReference
(
data_set
.
getReference
()
+
"_invalid"
)
reference_query
=
Query
(
**
{
'reference'
:
data_set
.
getReference
()
+
'/%'
})
reference_query
=
Query
(
**
{
'reference'
:
data_set
.
getReference
()
+
'/%'
})
kw_dict
=
{
"portal_type"
:
"Data Stream"
,
kw_dict
=
{
"portal_type"
:
"Data Stream"
,
"query"
:
reference_query
}
"query"
:
reference_query
}
for
data_stream
in
portal_catalog
(
**
kw_dict
):
for
data_stream
in
portal_catalog
(
**
kw_dict
):
if
data_stream
.
getReference
().
startswith
(
data_set
.
getReference
()
+
'/'
)
and
not
data_stream
.
getReference
().
endswith
(
"_invalid"
):
if
data_stream
.
getReference
().
startswith
(
data_set
.
getReference
()
+
'/'
)
and
not
data_stream
.
getReference
().
endswith
(
"_invalid"
):
portal
.
ERP5Site_invalidateIngestionObjects
(
data_stream
.
getReference
())
portal
.
ERP5Site_invalidateIngestionObjects
(
data_stream
.
getReference
())
data_set
.
setReference
(
data_set
.
getReference
()
+
"_invalid"
)
data_set
.
setVersion
(
"000"
)
elif
object
.
getPortalType
()
==
"Data Stream"
:
elif
object
.
getPortalType
()
==
"Data Stream"
:
data_stream
=
object
data_stream
=
object
portal
.
ERP5Site_invalidateIngestionObjects
(
data_stream
.
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