Commit 80da84b2 authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos_cloud] Don't reindex invalidated instances

Once a interaction is trigger after _setPredecessor don't propagate reindexation to invalidated software Instances.
parent ecc8bded
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
tag = document.getPath() + \'_reindex\'\n tag = document.getPath() + \'_reindex\'\n
document.activate(after_tag=after_tag).reindexObject(activate_kw=dict(tag=tag))\n document.activate(after_tag=after_tag).reindexObject(activate_kw=dict(tag=tag))\n
for subdocument in document.getPredecessorValueList(portal_type=\'Software Instance\'):\n for subdocument in document.getPredecessorValueList(portal_type=\'Software Instance\'):\n
if subdocument.getValidationState() != \'invalidated\':\n
reindexRecursively(subdocument, tag)\n reindexRecursively(subdocument, tag)\n
\n \n
reindexRecursively(state_change[\'object\'],)\n reindexRecursively(state_change[\'object\'],)\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment