Commit 02974d03 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

range criterion should be able to removed after configuration.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26551 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 968722fa
......@@ -376,12 +376,22 @@ class Predicate(XMLObject, Folder):
is greater than max
"""
# XXX 'min' and 'max' are built-in functions.
if getattr(aq_base(self), '_identity_criterion', None) is None:
self._identity_criterion = {}
self._range_criterion = {}
if identity is not None :
self._identity_criterion[property] = identity
if min != '' or max != '' :
if min == '':
min = None
if max == '':
max = None
if min is None and max is None:
try:
del self._range_criterion[property]
except KeyError:
pass
else:
self._range_criterion[property] = (min, max)
self.reindexObject()
......
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