server/__init__.py
changeset 8580 d753d6a6798f
parent 8561 77ea3eed9946
child 8626 e2ba137b2bf9
--- a/server/__init__.py	Thu Oct 11 18:42:13 2012 +0200
+++ b/server/__init__.py	Fri Oct 05 16:54:22 2012 +0200
@@ -165,6 +165,8 @@
     # on connection
     config.creating = True
     config.consider_user_state = False
+    config.cubicweb_appobject_path = set(('hooks', 'entities'))
+    config.cube_appobject_path = set(('hooks', 'entities'))
     # only enable the system source at initialization time
     repo = Repository(config, vreg=vreg)
     schema = repo.schema
@@ -242,6 +244,9 @@
     # restore initial configuration
     config.creating = False
     config.consider_user_state = True
+    # (drop instance attribute to get back to class attribute)
+    del config.cubicweb_appobject_path
+    del config.cube_appobject_path
     print '-> database for instance %s initialized.' % config.appid