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 ...@@ -62,7 +62,8 @@ while transformation.getPortalType() != "Transformation":\n
\n \n
resource = transformation.getResourceValue()\n resource = transformation.getResourceValue()\n
if resource is not None:\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> </string> </value>
</item> </item>
<item> <item>
...@@ -105,6 +106,8 @@ if resource is not None:\n ...@@ -105,6 +106,8 @@ if resource is not None:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>resource</string> <string>resource</string>
<string>None</string> <string>None</string>
<string>dict</string>
<string>activate_kw</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -57,7 +57,8 @@ ...@@ -57,7 +57,8 @@
resource = transformation.getResourceValue()\n resource = transformation.getResourceValue()\n
\n \n
if resource is not None:\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> </string> </value>
</item> </item>
<item> <item>
...@@ -100,6 +101,8 @@ if resource is not None:\n ...@@ -100,6 +101,8 @@ if resource is not None:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>resource</string> <string>resource</string>
<string>None</string> <string>None</string>
<string>dict</string>
<string>activate_kw</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
484 485
\ No newline at end of file \ 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