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 @@
</item>
<item>
<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
if context.getSourceSection():\n
base_category_tuple += (\'source_section\',)\n
......@@ -110,9 +114,9 @@ return context.generatePredicate(membership_criterion_base_category_list = base_
<tuple>
<string>args</string>
<string>kw</string>
<string>base_category_tuple</string>
<string>_getattr_</string>
<string>context</string>
<string>base_category_tuple</string>
<string>_inplacevar_</string>
<string>mapped_value_property_list</string>
</tuple>
......
......@@ -53,7 +53,11 @@
</item>
<item>
<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
if context.getSourceSection():\n
base_category_tuple += (\'source_section\',)\n
......@@ -111,9 +115,9 @@ return context.generatePredicate(membership_criterion_base_category_list = base_
<tuple>
<string>args</string>
<string>kw</string>
<string>base_category_tuple</string>
<string>_getattr_</string>
<string>context</string>
<string>base_category_tuple</string>
<string>_inplacevar_</string>
<string>mapped_value_property_list</string>
</tuple>
......
302
\ No newline at end of file
303
\ 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