Добавлено сообщение о том как создать сертификат для локального пользователя

master-3.5 3.5.5
parent 851b3adb54
commit 45b4743bf6

@ -18,6 +18,7 @@ from PySide import QtGui, QtCore
from sudsds import WebFault
import logging, OpenSSL
import ConfigParser, os, urllib2
import getpass
from calculate.core.client.function import clear as clear_suds_cache
from session_function import client_post_cert
@ -359,6 +360,10 @@ class FrameConnection(QtGui.QWidget):
mess = _('You do not have a certificate. Please generate '
'a new request and get the new certificate from '
'the server.')
if host_name in ("127.0.0.1", "localhost"):
mess = ("%s %s:\ncl-core -u %s")%(mess,
_("Also you can generate administrator certificate by root command"),
getpass.getuser())
show_msg (mess, parent = self)
elif e.message == 'VerifyError':
pass
@ -367,6 +372,10 @@ class FrameConnection(QtGui.QWidget):
'certificate does not match the server certificate.'
' Please generate a new request and get the new '
'certificate from the server.')
if host_name in ("127.0.0.1", "localhost"):
mess = ("%s %s:\ncl-core -u %s")%(mess,
_("Also you can generate administrator certificate by root command"),
getpass.getuser())
show_msg (mess, parent = self)
else:
if e.message or e.args:

Loading…
Cancel
Save