overridden `registered()` methods must call the base implementation tls-sprint
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 17 Feb 2009 22:24:03 +0100
branchtls-sprint
changeset 710 766c881e101f
parent 703 413675c2d46c
child 711 f758b86cf484
overridden `registered()` methods must call the base implementation
appobject.py
vregistry.py
web/views/actions.py
--- a/appobject.py	Tue Feb 17 22:05:39 2009 +0100
+++ b/appobject.py	Tue Feb 17 22:24:03 2009 +0100
@@ -58,6 +58,7 @@
 
     @classmethod
     def registered(cls, vreg):
+        super(AppRsetObject, cls).registered(vregistry)
         cls.vreg = vreg
         cls.schema = vreg.schema
         cls.config = vreg.config
--- a/vregistry.py	Tue Feb 17 22:05:39 2009 +0100
+++ b/vregistry.py	Tue Feb 17 22:24:03 2009 +0100
@@ -117,7 +117,7 @@
         if attr == '__selectors__':
             self.__select__ = classmethod(chainall(*value))
         super(autoselectors, self).__setattr__(attr, value)
-            
+
 
 class VObject(object):
     """visual object, use to be handled somehow by the visual components
@@ -577,7 +577,6 @@
 set_log_methods(registerer, getLogger('cubicweb.registration'))
 
 
-
 # selector base classes and operations ########################################
 
 class Selector(object):
--- a/web/views/actions.py	Tue Feb 17 22:05:39 2009 +0100
+++ b/web/views/actions.py	Tue Feb 17 22:24:03 2009 +0100
@@ -135,6 +135,7 @@
     order = 100
 
     def registered(cls, vreg):
+        super(ManagePermissionsAction, cls).registered(vreg)
         if 'require_permission' in vreg.schema:
             cls.__selectors__ |= relation_possible('require_permission', 'subject', 'EPermission',
                                                    action='add')