def is_connection_valid(self):
     profilename, info = self.collect_info()
     mt = SignalSlotModelThread(lambda:None)
     mt.start()
     progress = ProgressDialog(_('Verifying database settings'))
     mt.post(lambda:self.test_connection( info ),
         progress.finished, progress.exception)
     progress.exec_()
     return self._connection_valid
 def is_connection_valid(self):
     info = self.collect_info()
     mt = SignalSlotModelThread(lambda: None)
     mt.start()
     progress = ProgressDialog(_("Verifying database settings"))
     mt.post(
         lambda: self.test_connection(info["dialect"], info["host"], info["user"], info["pass"], info["database"]),
         progress.finished,
         progress.exception,
     )
     progress.exec_()
     return self._connection_valid
Beispiel #3
0
 def is_connection_valid(self):
     profilename, info = self.collect_info()
     mt = SignalSlotModelThread(lambda: None)
     mt.start()
     progress = ProgressDialog(_('Verifying database settings'))
     mt.post(lambda: self.test_connection(info), progress.finished,
             progress.exception)
     progress.exec_()
     return self._connection_valid