web/facet.py
changeset 2890 fdcb8a2bb6eb
parent 2799 b703639614e7
child 3023 7864fee8b4ec
equal deleted inserted replaced
2889:5b42222d3b88 2890:fdcb8a2bb6eb
   259     needs_update = False
   259     needs_update = False
   260     start_unfolded = True
   260     start_unfolded = True
   261 
   261 
   262     def __init__(self, req, rset=None, rqlst=None, filtered_variable=None,
   262     def __init__(self, req, rset=None, rqlst=None, filtered_variable=None,
   263                  **kwargs):
   263                  **kwargs):
   264         super(AbstractFacet, self).__init__(req, rset, **kwargs)
   264         super(AbstractFacet, self).__init__(req, rset=rset, **kwargs)
   265         assert rset is not None or rqlst is not None
   265         assert rset is not None or rqlst is not None
   266         assert filtered_variable
   266         assert filtered_variable
   267         # facet retreived using `object_by_id` from an ajax call
   267         # facet retreived using `object_by_id` from an ajax call
   268         if rset is None:
   268         if rset is None:
   269             self.init_from_form(rqlst=rqlst)
   269             self.init_from_form(rqlst=rqlst)