Commit 890e5191 authored by Yusei Tahara's avatar Yusei Tahara

2010-04-22 yusei

* Fix Measure_reindexResource in conversion_interaction_workflow. Reindex resource only when measure is unindexed but resource is not.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34711 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39b4dfe6
......@@ -53,8 +53,15 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>state_change[\'object\'].getResourceValue().reindexObject()\n
</string> </value>
<value> <string encoding="cdata"><![CDATA[
resource = state_change[\'object\'].getResourceValue()\n
if len(context.portal_catalog(uid=resource.getUid())) > 0:\n
# Reindex resource only when resource is not unindexed.\n
resource.reindexObject()\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
......@@ -93,6 +100,9 @@
<string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>resource</string>
<string>len</string>
<string>context</string>
</tuple>
</value>
</item>
......
2010-04-22 yusei
* Fix Measure_reindexResource in conversion_interaction_workflow. Reindex resource only when measure is unindexed but resource is not.
2010-03-09 Nicolas Dumazet
* Merge measure & quantity_unit_conversion interaction workflows into conversion_interaction_workflow
......
490
\ No newline at end of file
491
\ 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