oops tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 17 Feb 2009 23:34:17 +0100
branchtls-sprint
changeset 721 f76e89b52553
parent 720 36b64f712ec9
child 722 50a99184cf47
oops
appobject.py
vregistry.py
--- a/appobject.py	Tue Feb 17 23:34:01 2009 +0100
+++ b/appobject.py	Tue Feb 17 23:34:17 2009 +0100
@@ -56,7 +56,7 @@
 
     @classmethod
     def registered(cls, vreg):
-        super(AppRsetObject, cls).registered(vregistry)
+        super(AppRsetObject, cls).registered(vreg)
         cls.vreg = vreg
         cls.schema = vreg.schema
         cls.config = vreg.config
--- a/vregistry.py	Tue Feb 17 23:34:01 2009 +0100
+++ b/vregistry.py	Tue Feb 17 23:34:17 2009 +0100
@@ -582,7 +582,7 @@
         """
         if self is selector:
             return self
-        if isinstance(selector, type) and instance(self, selector):
+        if isinstance(selector, type) and isinstance(self, selector):
             return self
         return None