[repo] on repository initialization, properly shutdown intermediary repository stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 15 Jun 2010 18:00:29 +0200
branchstable
changeset 5750 b3bc214cd479
parent 5749 b4393b681f7a
child 5751 1e5ef464cade
[repo] on repository initialization, properly shutdown intermediary repository
server/__init__.py
--- a/server/__init__.py	Tue Jun 15 18:00:28 2010 +0200
+++ b/server/__init__.py	Tue Jun 15 18:00:29 2010 +0200
@@ -180,6 +180,7 @@
                         {'name': unicode(group)})
     create_user(session, login, pwd, 'managers')
     session.commit()
+    repo.shutdown()
     # reloging using the admin user
     config._cubes = None # avoid assertion error
     repo, cnx = in_memory_cnx(config, login, password=pwd)