use a property for schema, avoid bad schema reference stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Aug 2009 17:56:22 +0200
branchstable
changeset 2927 d249dd9000d9
parent 2926 4484387ed012
child 2928 edfdb69df6e8
use a property for schema, avoid bad schema reference
cwvreg.py
--- a/cwvreg.py	Thu Aug 20 17:55:08 2009 +0200
+++ b/cwvreg.py	Thu Aug 20 17:56:22 2009 +0200
@@ -47,7 +47,10 @@
     def __init__(self, vreg):
         super(CWRegistry, self).__init__(vreg.config)
         self.vreg = vreg
-        self.schema = vreg.schema
+
+    @property
+    def schema(self):
+        return self.vreg.schema
 
     def initialization_completed(self):
         # call vreg_initialization_completed on appobjects and print