web/facet.py
branchstable
changeset 4615 d69d7ccbe046
parent 4614 95ccd84c892b
child 4701 3acd198a66c9
equal deleted inserted replaced
4614:95ccd84c892b 4615:d69d7ccbe046
   510         return FacetRangeWidget
   510         return FacetRangeWidget
   511 
   511 
   512     def get_widget(self):
   512     def get_widget(self):
   513         """return the widget instance to use to display this facet"""
   513         """return the widget instance to use to display this facet"""
   514         values = set(value for _, value in self.vocabulary() if value is not None)
   514         values = set(value for _, value in self.vocabulary() if value is not None)
       
   515         # Rset with entities (the facet is selected) but without values
       
   516         if len(values) == 0:
       
   517             return None
   515         return self.wdgclass(self, min(values), max(values))
   518         return self.wdgclass(self, min(values), max(values))
   516 
   519 
   517     def infvalue(self):
   520     def infvalue(self):
   518         return self._cw.form.get('%s_inf' % self.__regid__)
   521         return self._cw.form.get('%s_inf' % self.__regid__)
   519 
   522