equal
deleted
inserted
replaced
19 from rql import parse, nodes |
19 from rql import parse, nodes |
20 |
20 |
21 from cubicweb import Unauthorized, typed_eid |
21 from cubicweb import Unauthorized, typed_eid |
22 from cubicweb.selectors import match_context_prop, partial_relation_possible |
22 from cubicweb.selectors import match_context_prop, partial_relation_possible |
23 from cubicweb.appobject import AppRsetObject |
23 from cubicweb.appobject import AppRsetObject |
24 from cubicweb.common.registerers import priority_registerer |
|
25 from cubicweb.web.htmlwidgets import HTMLWidget |
24 from cubicweb.web.htmlwidgets import HTMLWidget |
26 |
25 |
27 ## rqlst manipulation functions used by facets ################################ |
26 ## rqlst manipulation functions used by facets ################################ |
28 |
27 |
29 def prepare_facets_rqlst(rqlst, args=None): |
28 def prepare_facets_rqlst(rqlst, args=None): |
237 |
236 |
238 |
237 |
239 |
238 |
240 ## base facet classes ######################################################### |
239 ## base facet classes ######################################################### |
241 class AbstractFacet(AppRsetObject): |
240 class AbstractFacet(AppRsetObject): |
242 __registerer__ = priority_registerer |
|
243 __abstract__ = True |
241 __abstract__ = True |
244 __registry__ = 'facets' |
242 __registry__ = 'facets' |
245 property_defs = { |
243 property_defs = { |
246 _('visible'): dict(type='Boolean', default=True, |
244 _('visible'): dict(type='Boolean', default=True, |
247 help=_('display the box or not')), |
245 help=_('display the box or not')), |