simplify registerers tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 17 Feb 2009 17:26:28 +0100
branchtls-sprint
changeset 672 bfd01026ada8
parent 671 4ae56cfd530d
child 673 64c50cb17d70
simplify registerers
server/hooksmanager.py
--- a/server/hooksmanager.py	Tue Feb 17 17:25:59 2009 +0100
+++ b/server/hooksmanager.py	Tue Feb 17 17:26:28 2009 +0100
@@ -23,7 +23,7 @@
 
 
 :organization: Logilab
-:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
@@ -182,7 +182,7 @@
             
 from cubicweb.vregistry import autoselectors
 from cubicweb.common.appobject import AppObject
-from cubicweb.common.registerers import accepts_registerer, yes_registerer
+from cubicweb.common.registerers import yes_registerer
 from cubicweb.common.selectors import yes
 
 class autoid(autoselectors):
@@ -195,7 +195,7 @@
 class Hook(AppObject):
     __metaclass__ = autoid
     __registry__ = 'hooks'
-    __registerer__ = accepts_registerer
+    __registerer__ = yes_registerer
     __selectors__ = (yes,)
     # set this in derivated classes
     events = None
@@ -245,7 +245,6 @@
         raise NotImplementedError
     
 class SystemHook(Hook):
-    __registerer__ = yes_registerer
     accepts = ('',)
 
 from logging import getLogger