equal
deleted
inserted
replaced
154 from cubicweb.cwconfig import instance_configuration |
154 from cubicweb.cwconfig import instance_configuration |
155 config = instance_configuration(args[0]) |
155 config = instance_configuration(args[0]) |
156 # get local access to the repository |
156 # get local access to the repository |
157 print "Creating repo", prof_file |
157 print "Creating repo", prof_file |
158 repo = Repository(config, prof_file) |
158 repo = Repository(config, prof_file) |
159 cnxid = repo.connect(user, password) |
159 cnxid = repo.connect(user, password=password) |
160 # connection to the CubicWeb repository |
160 # connection to the CubicWeb repository |
161 repo_cnx = Connection(repo, cnxid) |
161 repo_cnx = Connection(repo, cnxid) |
162 repo_cursor = repo_cnx.cursor() |
162 repo_cursor = repo_cnx.cursor() |
163 reporter = ProfileReporter(queries) |
163 reporter = ProfileReporter(queries) |
164 if threads > 1: |
164 if threads > 1: |