author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 05 Feb 2010 08:11:32 +0100 | |
changeset 4460 | 5c22869079b9 |
parent 4252 | 6c4f109c2b03 |
child 4517 | 0f3c10fc42b2 |
permissions | -rw-r--r-- |
2835
04034421b072
[hooks] major refactoring:
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2822
diff
changeset
|
1 |
from logilab.common.deprecation import class_renamed, class_moved |
3391
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
2 |
from cubicweb.server import hook |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
3 |
SystemHook = class_renamed('SystemHook', hook.Hook) |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
4 |
PropagateSubjectRelationHook = class_renamed('PropagateSubjectRelationHook', |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
5 |
hook.PropagateSubjectRelationHook) |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
6 |
PropagateSubjectRelationAddHook = class_renamed('PropagateSubjectRelationAddHook', |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
7 |
hook.PropagateSubjectRelationAddHook) |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
8 |
PropagateSubjectRelationDelHook = class_renamed('PropagateSubjectRelationDelHook', |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
9 |
hook.PropagateSubjectRelationDelHook) |
b6564d9ca872
[hooks] fix deprecation warnings for old hook classes
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3090
diff
changeset
|
10 |
Hook = class_moved(hook.Hook) |