server/__init__.py
branchstable
changeset 5750 b3bc214cd479
parent 5424 8ecbcbff9777
child 6126 aca6a2c357fd
equal deleted inserted replaced
5749:b4393b681f7a 5750:b3bc214cd479
   178     for group in sorted(BASE_GROUPS):
   178     for group in sorted(BASE_GROUPS):
   179         session.execute('INSERT CWGroup X: X name %(name)s',
   179         session.execute('INSERT CWGroup X: X name %(name)s',
   180                         {'name': unicode(group)})
   180                         {'name': unicode(group)})
   181     create_user(session, login, pwd, 'managers')
   181     create_user(session, login, pwd, 'managers')
   182     session.commit()
   182     session.commit()
       
   183     repo.shutdown()
   183     # reloging using the admin user
   184     # reloging using the admin user
   184     config._cubes = None # avoid assertion error
   185     config._cubes = None # avoid assertion error
   185     repo, cnx = in_memory_cnx(config, login, password=pwd)
   186     repo, cnx = in_memory_cnx(config, login, password=pwd)
   186     # trigger vreg initialisation of entity classes
   187     # trigger vreg initialisation of entity classes
   187     config.cubicweb_appobject_path = set(('entities',))
   188     config.cubicweb_appobject_path = set(('entities',))