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 @@ ...@@ -53,8 +53,15 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>state_change[\'object\'].getResourceValue().reindexObject()\n <value> <string encoding="cdata"><![CDATA[
</string> </value>
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>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -93,6 +100,9 @@ ...@@ -93,6 +100,9 @@
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>resource</string>
<string>len</string>
<string>context</string>
</tuple> </tuple>
</value> </value>
</item> </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 2010-03-09 Nicolas Dumazet
* Merge measure & quantity_unit_conversion interaction workflows into conversion_interaction_workflow * Merge measure & quantity_unit_conversion interaction workflows into conversion_interaction_workflow
......
490 491
\ 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