fixed size, fix connect in CertificateClass

master3.3
Denis Spiridonov 12 years ago
parent 0835ebe4f1
commit aa4576aab2

@ -153,6 +153,7 @@ class CertClass (QtGui.QWidget):
except (UnicodeDecodeError, UnicodeEncodeError):
show_msg (_('Enter Hostname or IP adress'), _('Input Error'))
return 1
self.client.wsdl.services[0].setlocation(url)
try:
server_host_name = self.client.service.get_server_host_name()
except AttributeError:
@ -238,7 +239,7 @@ class CertClass (QtGui.QWidget):
show_msg (_('Enter Hostname or IP adress'), \
_('Input Error'))
return 1
client.wsdl.services[0].setlocation(url)
try:
server_host_name = client.service.get_server_host_name()
except urllib2.URLError, e:
@ -338,8 +339,7 @@ class CertClass (QtGui.QWidget):
fd = open(cl_client_cert_dir + '/ca/' + filename, 'w')
fd.write(ca_root)
fd.close()
user_root_cert = self.ClientObj.VarsApi.Get('cl_user_root_cert')
user_root_cert = user_root_cert.replace("~",homePath)
fa = open(user_root_cert, 'a')

@ -231,8 +231,8 @@ class ToolTabWidget(QtGui.QTabWidget):
self.resize(800,800)
else:
self.resize(500, 500)
self.setMinimumHeight(300)
self.setMinimumWidth(300)
self.setMinimumHeight(450)
self.setMinimumWidth(450)
self.setWindowTitle(self.Name)
self.setStyleSheet(

@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#import urllib, sys, getopt, os, shutil
import socket
from M2Crypto import RSA, X509, EVP, m2#, Rand, Err
from PySide import QtGui, QtCore

@ -21,13 +21,9 @@ from PySide.QtGui import QComboBox, QColorDialog
from more import LabelWordWrap, FileOpenWgt, show_msg, show_question
class ToolsWidget (QtGui.QWidget):
def __init__(self, parent, ClientObj, window):
QtGui.QWidget.__init__(self)
self.vlayout = QtGui.QVBoxLayout(self)
self.vlayout.setAlignment(QtCore.Qt.AlignTop)
self.vlayout.setAlignment(QtCore.Qt.AlignRight)
@ -161,6 +157,8 @@ class ToolGui(QtGui.QWidget):
self.grid = QtGui.QGridLayout(self)
self.grid.setContentsMargins(2,2,2,2)
self.grid.setSpacing(0)
# self.grid.setAlignment(QtCore.Qt.AlignLeft)
# background color settings
@ -402,6 +400,9 @@ class ToolOther(QtGui.QWidget):
self.grid = QtGui.QGridLayout(self)
self.grid.setContentsMargins(2,2,2,2)
self.grid.setSpacing(0)
# lang settings
self.lang_lbl = LabelWordWrap(_('Select Language'), self)
self.lang_lbl.setMaximumWidth(self.lang_lbl.sizeHint().width())

Loading…
Cancel
Save