hooks/syncsources.py
changeset 8190 2a3c1b787688
parent 7879 9aae456abab5
child 8556 bbe0d6985e59
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
    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'