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

Predicate: ignore empty value in _identity_criterion.

otherwise min / max criterion does not work.
parent 6d888ca0
......@@ -115,6 +115,8 @@ class Predicate(XMLObject):
# 'testing %s on context of %s' % \
# (self.getRelativeUrl(), context.getRelativeUrl()))
for property, value in self._identity_criterion.iteritems():
if not value:
continue
if isinstance(value, (list, tuple)):
result = context.getProperty(property) in value
else:
......
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