735 fetched from the entity types registry at selection time. |
735 fetched from the entity types registry at selection time. |
736 |
736 |
737 See :class:`~cubicweb.predicates.EClassPredicate` documentation for entity |
737 See :class:`~cubicweb.predicates.EClassPredicate` documentation for entity |
738 class lookup / score rules according to the input context. |
738 class lookup / score rules according to the input context. |
739 |
739 |
740 .. note:: when interface is an entity class, the score will reflect class |
740 .. note:: |
741 proximity so the most specific object will be selected. |
741 |
742 |
742 when interface is an entity class, the score will reflect class |
743 .. note:: deprecated in cubicweb >= 3.9, use either |
743 proximity so the most specific object will be selected. |
744 :class:`~cubicweb.predicates.is_instance` or |
744 |
745 :class:`~cubicweb.predicates.adaptable`. |
745 .. note:: |
|
746 |
|
747 deprecated in cubicweb >= 3.9, use either |
|
748 :class:`~cubicweb.predicates.is_instance` or |
|
749 :class:`~cubicweb.predicates.adaptable`. |
746 """ |
750 """ |
747 |
751 |
748 def __init__(self, *expected_ifaces, **kwargs): |
752 def __init__(self, *expected_ifaces, **kwargs): |
749 emit_warn = kwargs.pop('warn', True) |
753 emit_warn = kwargs.pop('warn', True) |
750 super(implements, self).__init__(**kwargs) |
754 super(implements, self).__init__(**kwargs) |