Commit 351e080e authored by Arnaud Fontaine's avatar Arnaud Fontaine

If test_tales_expression is not set for a Predicate, then it will

always be equal to its default value, namely 'python: True'



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41823 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 499142cc
......@@ -209,7 +209,7 @@ class Predicate(XMLObject):
if not result:
return result
test_tales_expression = self.getTestTalesExpression()
if test_tales_expression not in (None, '', 'python: True'):
if test_tales_expression != 'python: True':
expression = Expression(test_tales_expression)
from Products.ERP5Type.Utils import createExpressionContext
# evaluate a tales expression with the tested value as context
......
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