equal
deleted
inserted
replaced
968 def run(self, args): |
968 def run(self, args): |
969 from cubicweb.server.checkintegrity import reindex_entities |
969 from cubicweb.server.checkintegrity import reindex_entities |
970 appid = args[0] |
970 appid = args[0] |
971 config = ServerConfiguration.config_for(appid) |
971 config = ServerConfiguration.config_for(appid) |
972 repo, cnx = repo_cnx(config) |
972 repo, cnx = repo_cnx(config) |
973 session = repo._get_session(cnx.sessionid, setpool=True) |
973 session = repo._get_session(cnx.sessionid, setcnxset=True) |
974 reindex_entities(repo.schema, session) |
974 reindex_entities(repo.schema, session) |
975 cnx.commit() |
975 cnx.commit() |
976 |
976 |
977 |
977 |
978 class SynchronizeInstanceSchemaCommand(Command): |
978 class SynchronizeInstanceSchemaCommand(Command): |