~nataliabidart/ubuntu-sso-client/displayname-stable

« back to all changes in this revision

Viewing changes to ubuntu_sso/gui.py

* Workaround for LP: #467397 (when using turkish locale, decimal module import fails).
* Made entries name to be unicode to avoid a faulty capitalization when using turkish locale (LP: #652939).

Show diffs side-by-side

added added

removed removed

Lines of Context:
283
283
                if 'label' in name:
284
284
                    self.labels.append(obj)
285
285
 
286
 
        self.entries = ('name_entry', 'email1_entry', 'email2_entry',
287
 
                        'password1_entry', 'password2_entry',
288
 
                        'captcha_solution_entry', 'email_token_entry',
289
 
                        'login_email_entry', 'login_password_entry',
290
 
                        'reset_email_entry',
291
 
                        'reset_code_entry',
292
 
                        'reset_password1_entry', 'reset_password2_entry')
 
286
        self.entries = (u'name_entry', u'email1_entry', u'email2_entry',
 
287
                        u'password1_entry', u'password2_entry',
 
288
                        u'captcha_solution_entry', u'email_token_entry',
 
289
                        u'login_email_entry', u'login_password_entry',
 
290
                        u'reset_email_entry', u'reset_code_entry',
 
291
                        u'reset_password1_entry', u'reset_password2_entry')
293
292
 
294
293
        for name in self.entries:
295
294
            label = getattr(self, name.upper())