Commit d898fb70 authored by Nicolas Delaby's avatar Nicolas Delaby

Use last catalog optimisation

* Change Tales Expression of Catalog Method Filter (context, cache_key)
Reviewed by JM

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32434 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 530d2ec0
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value></value> <value>python: context.getPortalType() in ('Email', 'Fax', 'Telephone',)</value>
</item> </item>
<item key="_filter_type_archive" type="tuple"> <item key="_filter_expression_cache_key_archive" type="tuple">
<value>Email</value> <value>portal_type</value>
<value>Fax</value>
<value>Telephone</value>
</item> </item>
</catalog_method> </catalog_method>
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python: isDocument</value> <value>python: context.isDocument()</value>
</item> </item>
<item key="_filter_type_archive" type="tuple"> <item key="_filter_expression_cache_key_archive" type="tuple">
<value>portal_type</value>
</item> </item>
</catalog_method> </catalog_method>
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value></value> <value>python: context.getPortalType() in ('Email', 'Fax', 'Telephone')</value>
</item> </item>
<item key="_filter_type_archive" type="tuple"> <item key="_filter_expression_cache_key_archive" type="tuple">
<value>Email</value> <value>portal_type</value>
<value>Fax</value>
<value>Telephone</value>
</item> </item>
</catalog_method> </catalog_method>
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python: isDocument</value> <value>python: context.isDocument()</value>
</item> </item>
<item key="_filter_type_archive" type="tuple"> <item key="_filter_expression_cache_key_archive" type="tuple">
<value>portal_type</value>
</item> </item>
</catalog_method> </catalog_method>
16 18
\ 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