|
|
|
@ -66,7 +66,7 @@ def client_post_cert (client, lang):
|
|
|
|
|
if results[0][1] == -2:
|
|
|
|
|
_print (_("Certificate expired"))
|
|
|
|
|
elif results[0][1] > 0:
|
|
|
|
|
_print (_("Expires after %d days")%(results[0][1]))
|
|
|
|
|
_print (_("The certificate expires after %d days")%(results[0][1]))
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
@ -99,15 +99,15 @@ class ViewSessionInfo (QtGui.QWidget):
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('Certificate not sent!'),
|
|
|
|
|
self), 5,0,1,2)
|
|
|
|
|
else:
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('Your certifitate id: ') \
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_("Your certificate ID: ") \
|
|
|
|
|
+ str(results[0][0]), self), 5,0,1,2)
|
|
|
|
|
try:
|
|
|
|
|
if results[0][1] == -2:
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('expiry '
|
|
|
|
|
'certificate has passed'), self), 6,0,1,2)
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('Certificate '
|
|
|
|
|
'expired'), self), 6,0,1,2)
|
|
|
|
|
elif results[0][1] > 0:
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('shelf life expires'
|
|
|
|
|
' after %d days')%(results[0][1]), self), 6,0,1,2)
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('The certificate '
|
|
|
|
|
'expires after %d days')%(results[0][1]), self), 6,0,1,2)
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('Your IP address: ') + ip,
|
|
|
|
@ -117,7 +117,7 @@ class ViewSessionInfo (QtGui.QWidget):
|
|
|
|
|
|
|
|
|
|
# Add clear cache Button
|
|
|
|
|
self.clear_cache_button = QtGui.QPushButton \
|
|
|
|
|
(_('Clear your session cache'), self)
|
|
|
|
|
(_("Clear the session cache"), self)
|
|
|
|
|
self.clear_cache_button.clicked.connect(self.clear_cache(client, sid))
|
|
|
|
|
self.layout.addWidget(self.clear_cache_button, 9,0)
|
|
|
|
|
|
|
|
|
@ -150,4 +150,4 @@ class ViewSessionInfo (QtGui.QWidget):
|
|
|
|
|
show_msg(_('Error clearing the session cache'), parent = self)
|
|
|
|
|
else:
|
|
|
|
|
show_msg(_('Session cache cleared'), parent = self)
|
|
|
|
|
return wrapper
|
|
|
|
|
return wrapper
|
|
|
|
|