web/facet.py
changeset 7615 e5ad51352eb3
parent 7609 fbefd1b9e587
child 7618 5395007c415c
equal deleted inserted replaced
7614:40f33b3d3ea6 7615:e5ad51352eb3
  1027         if infvalue != self.infvalue(min=True):
  1027         if infvalue != self.infvalue(min=True):
  1028             self._add_restriction(infvalue, '>=')
  1028             self._add_restriction(infvalue, '>=')
  1029         if supvalue != self.supvalue(max=True):
  1029         if supvalue != self.supvalue(max=True):
  1030             self._add_restriction(supvalue, '<=')
  1030             self._add_restriction(supvalue, '<=')
  1031 
  1031 
  1032     def _add_restriction(self, operator, value):
  1032     def _add_restriction(self, value, operator):
  1033         self.select.add_constant_restriction(self.filtered_variable,
  1033         self.select.add_constant_restriction(self.filtered_variable,
  1034                                              self.rtype,
  1034                                              self.rtype,
  1035                                              self.formatvalue(value),
  1035                                              self.formatvalue(value),
  1036                                              self.attrtype, operator)
  1036                                              self.attrtype, operator)
  1037 
  1037