fix hook category selector
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 12:23:00 +0200
changeset 3416 d74c627981e1
parent 3415 ae884253edeb
child 3417 fb17a54b358c
fix hook category selector
server/hook.py
--- a/server/hook.py	Wed Sep 23 12:22:43 2009 +0200
+++ b/server/hook.py	Wed Sep 23 12:23:00 2009 +0200
@@ -103,7 +103,7 @@
         config = kwargs['repo'].config
     else:
         config = req.vreg.config
-    if enabled_category in config.disabled_hooks_categories:
+    if cls.category in config.disabled_hooks_categories:
         return 0
     return 1