equal
deleted
inserted
replaced
62 from logilab.common.deprecation import deprecated |
62 from logilab.common.deprecation import deprecated |
63 from logilab.common.registry import yes |
63 from logilab.common.registry import yes |
64 |
64 |
65 from rql import nodes, utils |
65 from rql import nodes, utils |
66 |
66 |
67 from cubicweb import Unauthorized, typed_eid |
67 from cubicweb import Unauthorized |
68 from cubicweb.schema import display_name |
68 from cubicweb.schema import display_name |
69 from cubicweb.uilib import css_em_num_value |
69 from cubicweb.uilib import css_em_num_value |
70 from cubicweb.utils import make_uid |
70 from cubicweb.utils import make_uid |
71 from cubicweb.predicates import match_context_prop, partial_relation_possible |
71 from cubicweb.predicates import match_context_prop, partial_relation_possible |
72 from cubicweb.appobject import AppObject |
72 from cubicweb.appobject import AppObject |
498 @property |
498 @property |
499 def wdgclass(self): |
499 def wdgclass(self): |
500 return FacetVocabularyWidget |
500 return FacetVocabularyWidget |
501 |
501 |
502 def get_selected(self): |
502 def get_selected(self): |
503 return frozenset(typed_eid(eid) |
503 return frozenset(int(eid) for eid in self._cw.list_form_param(self.__regid__)) |
504 for eid in self._cw.list_form_param(self.__regid__)) |
|
505 |
504 |
506 def get_widget(self): |
505 def get_widget(self): |
507 """Return the widget instance to use to display this facet. |
506 """Return the widget instance to use to display this facet. |
508 |
507 |
509 This implementation expects a .vocabulary method on the facet and |
508 This implementation expects a .vocabulary method on the facet and |