equal
deleted
inserted
replaced
382 repo.turn_repo_off = partial(turn_repo_off, repo) |
382 repo.turn_repo_off = partial(turn_repo_off, repo) |
383 return repo |
383 return repo |
384 |
384 |
385 |
385 |
386 def get_cnx(self): |
386 def get_cnx(self): |
387 """return Connection object ont he current repository""" |
387 """return Connection object on the current repository""" |
388 from cubicweb.dbapi import in_memory_cnx |
388 from cubicweb.dbapi import in_memory_cnx |
389 repo = self.get_repo() |
389 repo = self.get_repo() |
390 sources = self.config.sources() |
390 sources = self.config.sources() |
391 login = unicode(sources['admin']['login']) |
391 login = unicode(sources['admin']['login']) |
392 password = sources['admin']['password'] or 'xxx' |
392 password = sources['admin']['password'] or 'xxx' |