~ubuntuone-control-tower/ubuntu-sso-client/trunk

« back to all changes in this revision

Viewing changes to ubuntu_sso/utils/ui.py

  • Committer: Tarmac
  • Author(s): Manuel de la Pena
  • Date: 2012-03-09 14:33:28 UTC
  • mfrom: (846.10.21 qt-ssl-dialog)
  • Revision ID: tarmac-20120309143328-5uih024zxk5sh3js
- Added a translatable string to give more context of the ssl cert info to the user
  (LP: #948119).
- Provided the logic required for the Qt webclient implementation to detect ssl errors
  and spawn the ssl dialog to allow the user accept the ssl cert exceptions
  (LP: #948134).
- Changed the qt webclient implementation to use a proxy factory so that the correct
  proxy is chosen according to the request (LP: #950088).

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
SSL_CERT_DETAILS = _('Certificate details')
134
134
SSL_CONNECT_BUTTON = _('Connect')
135
135
SSL_DETAILS_HELP = _('the details ssl certificate we are going to show.')
 
136
SSL_DETAILS_TEMPLATE = ('Organization:\t%(organization)s\n'
 
137
                        'Common Name:\t%(common_name)s\n'
 
138
                        'Locality Name:\t%(locality_name)s\n'
 
139
                        'Unit:\t%(unit)s\n'
 
140
                        'Country:\t%(country_name)s\n'
 
141
                        'State or Province:\t%(state_name)s')
136
142
SSL_DESCRIPTION = _('Open the SSL certificate UI.')
137
143
SSL_DIALOG_TITLE = _('SSL Certificate Not Valid')
138
144
SSL_DOMAIN_HELP = _('the domain whose ssl certificate we are going to show.')