From 169308aade2e65c5c6978ff862086c3cc8eb0e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 22 May 2013 16:55:27 +0200 Subject: [PATCH] Remove trailing refresh_ssl --- tryton/common/common.py | 5 ----- tryton/gui/window/dbcreate.py | 4 ---- tryton/gui/window/dblogin.py | 2 -- 3 files changed, 11 deletions(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index 4798c1a4a7..0279a488eb 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -248,8 +248,6 @@ def refresh_langlist(lang_widget, host, port): lang_list = rpc.db_exec(host, port, 'list_lang') except socket.error: return [] - from tryton.gui.main import Main - Main.get_main().refresh_ssl() index = -1 i = 0 lang = locale.getdefaultlocale()[0] @@ -1104,7 +1102,6 @@ def process_exception(exception, *args, **kwargs): return False res = rpc.login(rpc._USERNAME, password, hostname, port, rpc._DATABASE) - Main.get_main().refresh_ssl() if res == -1: message(_('Connection error!\n' 'Unable to connect to the server!')) @@ -1229,8 +1226,6 @@ class DBProgress(object): elif dbs == -1: dbs, createdb = -1, False else: - from tryton.gui.main import Main - Main.get_main().refresh_ssl() liststore = combo.get_model() liststore.clear() index = -1 diff --git a/tryton/gui/window/dbcreate.py b/tryton/gui/window/dbcreate.py index be81f84f2f..68312edb00 100644 --- a/tryton/gui/window/dbcreate.py +++ b/tryton/gui/window/dbcreate.py @@ -396,11 +396,7 @@ class DBCreate(object): parent.present() self.dialog.destroy() rpc.logout() - from tryton.gui.main import Main - Main.get_main().refresh_ssl() break - from tryton.gui.main import Main - Main.get_main().refresh_ssl() parent.present() self.dialog.destroy() if self.sig_login: diff --git a/tryton/gui/window/dblogin.py b/tryton/gui/window/dblogin.py index 1903db9782..eb391b9153 100644 --- a/tryton/gui/window/dblogin.py +++ b/tryton/gui/window/dblogin.py @@ -650,7 +650,5 @@ class DBLogin(object): self.dialog.destroy() if res != gtk.RESPONSE_OK: rpc.logout() - from tryton.gui.main import Main - Main.get_main().refresh_ssl() raise TrytonError('QueryCanceled') return result