equal
deleted
inserted
replaced
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) |