kill vobject_helpver tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 01:57:46 +0100
branchtls-sprint
changeset 754 937f5feac7f0
parent 753 17d38f000bea
child 755 cf75a7dbd99a
kill vobject_helpver
vregistry.py
--- a/vregistry.py	Wed Feb 18 01:45:35 2009 +0100
+++ b/vregistry.py	Wed Feb 18 01:57:46 2009 +0100
@@ -35,19 +35,8 @@
 from cubicweb import RegistryNotFound, ObjectNotFound, NoSelectableObject
 
 
-class vobject_helper(object):
-    """object instantiated at registration time to help a wrapped
-    VObject subclass
-    """
 
-    def __init__(self, registry, vobject):
-        self.registry = registry
-        self.vobject = vobject
-        self.config = registry.config
-        self.schema = registry.schema
-
-
-class registerer(vobject_helper):
+class registerer(object):
     """do whatever is needed at registration time for the wrapped
     class, according to current application schema and already
     registered objects of the same kind (i.e. same registry name and
@@ -60,7 +49,10 @@
     """
 
     def __init__(self, registry, vobject):
-        super(registerer, self).__init__(registry, vobject)
+        self.registry = registry
+        self.vobject = vobject
+        self.config = registry.config
+        self.schema = registry.schema
         self.kicked = set()
     
     def do_it_yourself(self, registered):