web/views/facets.py
changeset 8000 9a73d5e762b0
parent 7996 8de58d2674d6
child 8026 98222e3bb804
equal deleted inserted replaced
7999:ea012d90825d 8000:9a73d5e762b0
   158         :type cssclass:  string
   158         :type cssclass:  string
   159 
   159 
   160         :param hiddens:  other hidden parametters to include in the forms.
   160         :param hiddens:  other hidden parametters to include in the forms.
   161         :type hiddens:   dict from extra keyword argument
   161         :type hiddens:   dict from extra keyword argument
   162         """
   162         """
       
   163         # XXX Facet.context property hijacks an otherwise well-behaved
       
   164         #     vocabulary with its own notions
       
   165         #     Hence we whack here to avoid a clash
       
   166         kwargs.pop('context', None)
   163         baserql, wdgs = facets(self._cw, rset, context=self.__regid__,
   167         baserql, wdgs = facets(self._cw, rset, context=self.__regid__,
   164                                mainvar=mainvar, **kwargs)
   168                                mainvar=mainvar, **kwargs)
   165         assert wdgs
   169         assert wdgs
   166         self._cw.add_js(self.needs_js)
   170         self._cw.add_js(self.needs_js)
   167         self._cw.add_css(self.needs_css)
   171         self._cw.add_css(self.needs_css)