server/__init__.py
changeset 3720 5376aaadd16b
parent 3647 2941f4a0aab9
parent 3699 20ba545e00e1
child 3738 89871767fa82
equal deleted inserted replaced
3678:29f74716fd70 3720:5376aaadd16b
   174     session.execute('SET U in_group G WHERE G name "managers"')
   174     session.execute('SET U in_group G WHERE G name "managers"')
   175     session.commit()
   175     session.commit()
   176     # reloging using the admin user
   176     # reloging using the admin user
   177     config._cubes = None # avoid assertion error
   177     config._cubes = None # avoid assertion error
   178     repo, cnx = in_memory_cnx(config, login, password=pwd)
   178     repo, cnx = in_memory_cnx(config, login, password=pwd)
       
   179     # trigger vreg initialisation of entity classes
       
   180     config.cubicweb_appobject_path = set(('entities',))
       
   181     config.cube_appobject_path = set(('entities',))
       
   182     repo.vreg.set_schema(repo.schema)
   179     assert len(repo.sources) == 1, repo.sources
   183     assert len(repo.sources) == 1, repo.sources
   180     handler = config.migration_handler(schema, interactive=False,
   184     handler = config.migration_handler(schema, interactive=False,
   181                                        cnx=cnx, repo=repo)
   185                                        cnx=cnx, repo=repo)
   182     initialize_schema(config, schema, handler)
   186     initialize_schema(config, schema, handler)
   183     # yoo !
   187     # yoo !