equal
deleted
inserted
replaced
24 from itertools import chain |
24 from itertools import chain |
25 from warnings import warn |
25 from warnings import warn |
26 |
26 |
27 from logilab.mtconverter import TransformError |
27 from logilab.mtconverter import TransformError |
28 from logilab.common.decorators import cached |
28 from logilab.common.decorators import cached |
29 from logilab.common.deprecation import class_deprecated |
|
30 |
29 |
31 from cubicweb import ValidationError, view |
30 from cubicweb import ValidationError, view |
32 from cubicweb.predicates import (implements, is_instance, relation_possible, |
31 from cubicweb.predicates import (implements, is_instance, relation_possible, |
33 match_exception) |
32 match_exception) |
34 from cubicweb.interfaces import IDownloadable, ITree, IProgress, IMileStone |
33 from cubicweb.interfaces import IDownloadable, ITree |
35 |
34 |
36 |
35 |
37 class IEmailableAdapter(view.EntityAdapter): |
36 class IEmailableAdapter(view.EntityAdapter): |
38 __regid__ = 'IEmailable' |
37 __regid__ = 'IEmailable' |
39 __select__ = relation_possible('primary_email') | relation_possible('use_email') |
38 __select__ = relation_possible('primary_email') | relation_possible('use_email') |