179 config.bootstrap_cubes() |
179 config.bootstrap_cubes() |
180 self.set_bootstrap_schema(self.config.load_schema()) |
180 self.set_bootstrap_schema(self.config.load_schema()) |
181 # need to load the Any and EUser entity types |
181 # need to load the Any and EUser entity types |
182 self.vreg.schema = self.schema |
182 self.vreg.schema = self.schema |
183 etdirectory = join(CW_SOFTWARE_ROOT, 'entities') |
183 etdirectory = join(CW_SOFTWARE_ROOT, 'entities') |
184 self.vreg.load_file(etdirectory, '__init__.py') |
184 self.init_registration(etdirectory) |
185 self.vreg.load_file(etdirectory, 'authobjs.py') |
185 self.vreg.load_file(join(etdirectory, '__init__.py'), |
|
186 'cubicweb.entities.__init__') |
|
187 self.vreg.load_file(join(etdirectory, 'authobjs.py'), |
|
188 'cubicweb.entities.authobjs') |
186 else: |
189 else: |
187 # test start: use the file system schema (quicker) |
190 # test start: use the file system schema (quicker) |
188 self.warning("set fs application'schema") |
191 self.warning("set fs application'schema") |
189 config.bootstrap_cubes() |
192 config.bootstrap_cubes() |
190 self.set_schema(self.config.load_schema()) |
193 self.set_schema(self.config.load_schema()) |