[repository quick start] should modify class attribute to get this actually working (used by a classmethod) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 04 May 2011 14:55:27 +0200
branchstable
changeset 7305 1f97c05cfbab
parent 7303 7e7b44406cb1
child 7306 a21bafe9fe35
[repository quick start] should modify class attribute to get this actually working (used by a classmethod)
server/repository.py
--- a/server/repository.py	Wed May 04 12:24:41 2011 +0200
+++ b/server/repository.py	Wed May 04 14:55:27 2011 +0200
@@ -178,8 +178,8 @@
             # information (eg dump/restore/...)
             config._cubes = ()
             # only load hooks and entity classes in the registry
-            config.cube_appobject_path = set(('hooks', 'entities'))
-            config.cubicweb_appobject_path = set(('hooks', 'entities'))
+            config.__class__.cube_appobject_path = set(('hooks', 'entities'))
+            config.__class__.cubicweb_appobject_path = set(('hooks', 'entities'))
             self.set_schema(config.load_schema())
             config['connections-pool-size'] = 1
             # will be reinitialized later from cubes found in the database