Commit e40ee89a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

using variables other than 'context' in filter expression is deprecated and slower.

parent b40c9fc9
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python: here.getPortalType() == 'Person'</value> <value>python: context.getPortalType() == 'Person'</value>
</item> </item>
</catalog_method> </catalog_method>
35 36
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python:(here.isDocument and here.isExternalDocument) or here.getPortalType() == 'Email Reader'</value> <value>python:(context.isDocument and context.isExternalDocument) or context.getPortalType() == 'Email Reader'</value>
</item> </item>
<item key="_filter_expression_cache_key_archive" type="str"> <item key="_filter_expression_cache_key_archive" type="str">
<value></value> <value></value>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python: here.getPortalType() == 'Email Thread'</value> <value>python: context.getPortalType() == 'Email Thread'</value>
</item> </item>
<item key="_filter_expression_cache_key_archive" type="str"> <item key="_filter_expression_cache_key_archive" type="str">
<value></value> <value></value>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python:(here.isDocument and here.isExternalDocument) or here.getPortalType() == 'Email Reader'</value> <value>python:(context.isDocument and context.isExternalDocument) or context.getPortalType() == 'Email Reader'</value>
</item> </item>
<item key="_filter_expression_cache_key_archive" type="str"> <item key="_filter_expression_cache_key_archive" type="str">
<value></value> <value></value>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python: here.getPortalType() == 'Email Thread'</value> <value>python: context.getPortalType() == 'Email Thread'</value>
</item> </item>
<item key="_filter_expression_cache_key_archive" type="str"> <item key="_filter_expression_cache_key_archive" type="str">
<value></value> <value></value>
......
33 34
\ No newline at end of file \ No newline at end of file
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python: getattr(here, 'getOutcomeDescription', None) is not None</value> <value>python: getattr(context, 'getOutcomeDescription', None) is not None</value>
</item> </item>
</catalog_method> </catalog_method>
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
<value>1</value> <value>1</value>
</item> </item>
<item key="_filter_expression_archive" type="str"> <item key="_filter_expression_archive" type="str">
<value>python: getattr(here, 'getOutcomeDescription', None) is not None</value> <value>python: getattr(context, 'getOutcomeDescription', None) is not None</value>
</item> </item>
</catalog_method> </catalog_method>
22 23
\ 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