Commit d8bf5be7 authored by Nicolas Dumazet's avatar Nicolas Dumazet

conversion_interaction_workflow: add an after_path activate_kw to reindexObject

When a change on a Transformation (or a Transformation line) triggers a resource
reindexation, we dont want it to happen before the Transformation reindexation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34035 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec052bdc
......@@ -62,7 +62,8 @@ while transformation.getPortalType() != "Transformation":\n
\n
resource = transformation.getResourceValue()\n
if resource is not None:\n
resource.reindexObject()\n
activate_kw=dict(after_path=transformation.getPath())\n
resource.reindexObject(activate_kw=activate_kw)\n
</string> </value>
</item>
<item>
......@@ -105,6 +106,8 @@ if resource is not None:\n
<string>_getattr_</string>
<string>resource</string>
<string>None</string>
<string>dict</string>
<string>activate_kw</string>
</tuple>
</value>
</item>
......
......@@ -57,7 +57,8 @@
resource = transformation.getResourceValue()\n
\n
if resource is not None:\n
resource.reindexObject()\n
activate_kw=dict(after_path=transformation.getPath())\n
resource.reindexObject(activate_kw=activate_kw)\n
</string> </value>
</item>
<item>
......@@ -100,6 +101,8 @@ if resource is not None:\n
<string>_getattr_</string>
<string>resource</string>
<string>None</string>
<string>dict</string>
<string>activate_kw</string>
</tuple>
</value>
</item>
......
484
\ No newline at end of file
485
\ No newline at end of file
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