equal
deleted
inserted
replaced
1 # copyright 2010-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2010-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
24 from logilab.common.decorators import clear_cache |
24 from logilab.common.decorators import clear_cache |
25 |
25 |
26 from cubicweb import validation_error |
26 from cubicweb import validation_error |
27 from cubicweb.predicates import is_instance |
27 from cubicweb.predicates import is_instance |
28 from cubicweb.server import SOURCE_TYPES, hook |
28 from cubicweb.server import SOURCE_TYPES, hook |
|
29 |
29 |
30 |
30 class SourceHook(hook.Hook): |
31 class SourceHook(hook.Hook): |
31 __abstract__ = True |
32 __abstract__ = True |
32 category = 'cw.sources' |
33 category = 'cw.sources' |
33 |
34 |