server/migractions.py
branchstable
changeset 2570 80a996bb536d
parent 2275 bc0bed0616a3
child 2571 5c837feca73a
equal deleted inserted replaced
2569:e48a09bda07d 2570:80a996bb536d
   192                 try:
   192                 try:
   193                     login, pwd = manager_userpasswd()
   193                     login, pwd = manager_userpasswd()
   194                 except (KeyboardInterrupt, EOFError):
   194                 except (KeyboardInterrupt, EOFError):
   195                     print 'aborting...'
   195                     print 'aborting...'
   196                     sys.exit(0)
   196                     sys.exit(0)
       
   197             self.session.keep_pool_mode = 'transaction'
   197             return self._cnx
   198             return self._cnx
   198 
   199 
   199     @property
   200     @property
   200     def session(self):
   201     def session(self):
   201         return self.repo._get_session(self.cnx.sessionid)
   202         return self.repo._get_session(self.cnx.sessionid)