equal
deleted
inserted
replaced
17 from cubicweb.web.box import BoxTemplate |
17 from cubicweb.web.box import BoxTemplate |
18 from cubicweb.web.facet import (AbstractFacet, FacetStringWidget, RelationFacet, |
18 from cubicweb.web.facet import (AbstractFacet, FacetStringWidget, RelationFacet, |
19 prepare_facets_rqlst, filter_hiddens) |
19 prepare_facets_rqlst, filter_hiddens) |
20 |
20 |
21 @objectify_selector |
21 @objectify_selector |
22 def contextview_selector(cls, req, rset, row=None, col=None, view=None, |
22 def contextview_selector(cls, req, rset=None, row=None, col=None, view=None, |
23 **kwargs): |
23 **kwargs): |
24 if view and getattr(view, 'filter_box_context_info', lambda: None)(): |
24 if view and getattr(view, 'filter_box_context_info', lambda: None)(): |
25 return 1 |
25 return 1 |
26 return 0 |
26 return 0 |
27 |
27 |