Commit 79663e98 authored by Jérome Perrin's avatar Jérome Perrin

make deleted and invalidated predicate never match

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25708 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 346e110e
...@@ -53,7 +53,11 @@ ...@@ -53,7 +53,11 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>base_category_tuple = (\'resource\',)\n <value> <string>if context.getProperty(\'validation_state\') in (\'invalidated\', \'deleted\'):\n
# return a predicate that will never apply\n
return context.generatePredicate(criterion_property_list=(\'uid\',))\n
\n
base_category_tuple = (\'resource\',)\n
\n \n
if context.getSourceSection():\n if context.getSourceSection():\n
base_category_tuple += (\'source_section\',)\n base_category_tuple += (\'source_section\',)\n
...@@ -110,9 +114,9 @@ return context.generatePredicate(membership_criterion_base_category_list = base_ ...@@ -110,9 +114,9 @@ return context.generatePredicate(membership_criterion_base_category_list = base_
<tuple> <tuple>
<string>args</string> <string>args</string>
<string>kw</string> <string>kw</string>
<string>base_category_tuple</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>base_category_tuple</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>mapped_value_property_list</string> <string>mapped_value_property_list</string>
</tuple> </tuple>
......
...@@ -53,7 +53,11 @@ ...@@ -53,7 +53,11 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>base_category_tuple = (\'resource\',)\n <value> <string>if context.getProperty(\'validation_state\') in (\'invalidated\', \'deleted\'):\n
# return a predicate that will never apply\n
return context.generatePredicate(criterion_property_list=(\'uid\',))\n
\n
base_category_tuple = (\'resource\',)\n
\n \n
if context.getSourceSection():\n if context.getSourceSection():\n
base_category_tuple += (\'source_section\',)\n base_category_tuple += (\'source_section\',)\n
...@@ -111,9 +115,9 @@ return context.generatePredicate(membership_criterion_base_category_list = base_ ...@@ -111,9 +115,9 @@ return context.generatePredicate(membership_criterion_base_category_list = base_
<tuple> <tuple>
<string>args</string> <string>args</string>
<string>kw</string> <string>kw</string>
<string>base_category_tuple</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>base_category_tuple</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>mapped_value_property_list</string> <string>mapped_value_property_list</string>
</tuple> </tuple>
......
302 303
\ 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