parameters: (self, property, identity=None, min=None, max=None, **kw)
docstring: This methods sets parameters of a criterion. There is at most one
        criterion per property. Defined parameters are
  
        identity -- if not None, allows for testing identity of the property
                    with the provided value
  
        min      -- if not None, allows for testing that the property
                    is greater than min
  
        max      -- if not None, allows for testing that the property
                    is greater than max
docstring_summary: This methods sets parameters of a criterion. There is at most one
        criterion per property. Defined parameters are
docstring_tokens: This methods sets parameters of a criterion . There is at most one criterion per property . Defined parameters are
function: def setCriterion(self, property, identity=None, min=None, max=None, **kw):
      """
        This methods sets parameters of a criterion. There is at most one
        criterion per property. Defined parameters are
  
        identity -- if not None, allows for testing identity of the property
                    with the provided value
  
        min      -- if not None, allows for testing that the property
                    is greater than min
  
        max      -- if not None, allows for testing that the property
                    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 = PersistentMapping()
        self._range_criterion = PersistentMapping()
      if identity is not None :
        self._identity_criterion[property] = identity
      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()
function_tokens: def setCriterion ( self , property , identity = None , min = None , max = None , * * kw ) : # XXX 'min' and 'max' are built-in functions. if getattr ( aq_base ( self ) , '_identity_criterion' , None ) is None : self . _identity_criterion = PersistentMapping ( ) self . _range_criterion = PersistentMapping ( ) if identity is not None : self . _identity_criterion [ property ] = identity 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 ( )