Remove trailing refresh_ssl
This commit is contained in:
1 parent
7d0f58627b
commit
169308aade
3 files changed
-11
No files matched your search
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user