From fd7ce3a0f22e563311ca40528fee5c8c27ebcd83 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Fri, 19 Mar 2010 06:30:21 +0000 Subject: [PATCH] Do not index Temporary Documents. Temp objects are created by getAggregatedAmountList, and might be of Transformation Transformed Resource type: do not reindex the Product in this case git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33895 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...scendant_reindexTransformationResource.xml | 36 ++++++++++++++++++- bt5/erp5_pdm/bt/revision | 2 +- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_pdm/WorkflowTemplateItem/portal_workflow/conversion_interaction_workflow/interactions/TransformationDescendant_reindexTransformationResource.xml b/bt5/erp5_pdm/WorkflowTemplateItem/portal_workflow/conversion_interaction_workflow/interactions/TransformationDescendant_reindexTransformationResource.xml index 04391b6232..9974e8b2cd 100644 --- a/bt5/erp5_pdm/WorkflowTemplateItem/portal_workflow/conversion_interaction_workflow/interactions/TransformationDescendant_reindexTransformationResource.xml +++ b/bt5/erp5_pdm/WorkflowTemplateItem/portal_workflow/conversion_interaction_workflow/interactions/TransformationDescendant_reindexTransformationResource.xml @@ -48,7 +48,7 @@ <item> <key> <string>guard</string> </key> <value> - <none/> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> </value> </item> <item> @@ -98,4 +98,38 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: not here.isTempDocument()</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_pdm/bt/revision b/bt5/erp5_pdm/bt/revision index 7ad8022502..6efca19ea0 100644 --- a/bt5/erp5_pdm/bt/revision +++ b/bt5/erp5_pdm/bt/revision @@ -1 +1 @@ -480 \ No newline at end of file +481 \ No newline at end of file -- 2.30.9