server/hooksmanager.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 08 Mar 2010 17:57:29 +0100
changeset 4831 c5aec27c1bf7
parent 4517 0f3c10fc42b2
child 5421 8167de96c523
permissions -rw-r--r--
[repo] use logilab.db instead of lgc.adbh/lgc.db/lgc.sqlgen/indexer, test new date extranction functions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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)