Commit 7c5994c1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use 'in value' instead of '== value' because _identity_criterion values are...

use 'in value' instead of '== value' because _identity_criterion values are lists. it is already like this in ContributionPredicate.py, but not here.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28793 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d070b314
...@@ -108,7 +108,7 @@ class Predicate(XMLObject, Folder): ...@@ -108,7 +108,7 @@ class Predicate(XMLObject, Folder):
# 'testing %s on context of %s' % \ # 'testing %s on context of %s' % \
# (self.getRelativeUrl(), context.getRelativeUrl())) # (self.getRelativeUrl(), context.getRelativeUrl()))
for property, value in self._identity_criterion.iteritems(): for property, value in self._identity_criterion.iteritems():
result = result and (context.getProperty(property) == value) result = result and (context.getProperty(property) in value)
# LOG('predicate test', 0, # LOG('predicate test', 0,
# '%s after prop %s : %s == %s' % \ # '%s after prop %s : %s == %s' % \
# (result, property, context.getProperty(property), value)) # (result, property, context.getProperty(property), value))
......
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