equal
deleted
inserted
replaced
21 |
21 |
22 from logilab.common.decorators import clear_cache |
22 from logilab.common.decorators import clear_cache |
23 from yams.schema import role_name |
23 from yams.schema import role_name |
24 |
24 |
25 from cubicweb import ValidationError |
25 from cubicweb import ValidationError |
26 from cubicweb.selectors import is_instance |
26 from cubicweb.predicates import is_instance |
27 from cubicweb.server import SOURCE_TYPES, hook |
27 from cubicweb.server import SOURCE_TYPES, hook |
28 |
28 |
29 class SourceHook(hook.Hook): |
29 class SourceHook(hook.Hook): |
30 __abstract__ = True |
30 __abstract__ = True |
31 category = 'cw.sources' |
31 category = 'cw.sources' |