# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1234887988 -3600 # Node ID bfd01026ada8d56e705496b1b5e4963df641f704 # Parent 4ae56cfd530d57ae55f04ee155d1c83afc1c3fb7 simplify registerers diff -r 4ae56cfd530d -r bfd01026ada8 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