web/views/facets.py
changeset 8000 9a73d5e762b0
parent 7996 8de58d2674d6
child 8026 98222e3bb804
--- a/web/views/facets.py	Fri Oct 21 17:14:05 2011 +0200
+++ b/web/views/facets.py	Fri Oct 21 17:42:56 2011 +0200
@@ -160,6 +160,10 @@
         :param hiddens:  other hidden parametters to include in the forms.
         :type hiddens:   dict from extra keyword argument
         """
+        # XXX Facet.context property hijacks an otherwise well-behaved
+        #     vocabulary with its own notions
+        #     Hence we whack here to avoid a clash
+        kwargs.pop('context', None)
         baserql, wdgs = facets(self._cw, rset, context=self.__regid__,
                                mainvar=mainvar, **kwargs)
         assert wdgs