devtools/__init__.py
changeset 7222 fcb8932082a5
parent 7217 4b860903d8c7
child 7235 5a0ee8de7f06
equal deleted inserted replaced
7221:dc79f1a3c6ed 7222:fcb8932082a5
   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'