default to yes_registerer tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 17 Feb 2009 23:21:23 +0100
branchtls-sprint
changeset 719 2a610efe21ce
parent 718 f7011679437a
child 720 36b64f712ec9
default to yes_registerer
appobject.py
server/hooksmanager.py
view.py
vregistry.py
--- a/appobject.py	Tue Feb 17 23:16:13 2009 +0100
+++ b/appobject.py	Tue Feb 17 23:21:23 2009 +0100
@@ -22,8 +22,6 @@
 from cubicweb.vregistry import VObject
 from cubicweb.selectors import yes
 from cubicweb.utils import UStringIO, ustrftime
-from cubicweb.common.registerers import yes_registerer, priority_registerer
-
 
 
 class Cache(dict):    
--- a/server/hooksmanager.py	Tue Feb 17 23:16:13 2009 +0100
+++ b/server/hooksmanager.py	Tue Feb 17 23:21:23 2009 +0100
@@ -182,7 +182,6 @@
             
 from cubicweb.selectors import yes
 from cubicweb.common.appobject import AppObject
-from cubicweb.common.registerers import yes_registerer
 
 class autoid(type):
     """metaclass to create an unique 'id' attribute on the class using it"""
@@ -195,7 +194,6 @@
 class Hook(AppObject):
     __metaclass__ = autoid
     __registry__ = 'hooks'
-    __registerer__ = yes_registerer
     __selectors__ = (yes,)
     # set this in derivated classes
     events = None
--- a/view.py	Tue Feb 17 23:16:13 2009 +0100
+++ b/view.py	Tue Feb 17 23:21:23 2009 +0100
@@ -17,6 +17,7 @@
 from cubicweb.selectors import require_group_compat, accepts_compat
 from cubicweb.appobject import AppRsetObject
 from cubicweb.utils import UStringIO, HTMLStream
+from cubicweb.vregistry import yes_registerer
 from cubicweb.common.registerers import accepts_registerer, priority_registerer, yes_registerer
 
 _ = unicode
--- a/vregistry.py	Tue Feb 17 23:16:13 2009 +0100
+++ b/vregistry.py	Tue Feb 17 23:21:23 2009 +0100
@@ -92,10 +92,8 @@
     :id:
       object's identifier in the registry (string like 'main',
       'primary', 'folder_box')
-    :__registerer__:
-      registration helper class
     :__select__:
-      selection helper function
+      class'selector
     :__selectors__:
       tuple of selectors to be chained
       (__select__ and __selectors__ are mutually exclusive)
@@ -106,7 +104,7 @@
     # necessary attributes to interact with the registry
     id = None
     __registry__ = None
-    __registerer__ = None
+    __registerer__ = yes_registerer
     __select__ = None
 
     @classmethod