~alecu/ubuntu-sso-client/use-pycurl-1-2

« back to all changes in this revision

Viewing changes to ubuntu_sso/gtk/gui.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2011-03-21 16:31:49 UTC
  • mfrom: (678.2.2 displayname)
  • Revision ID: tarmac-20110321163149-37pv1vbl1pa7rs9a
- Register now uses the 'displayname' field to pass it on to SSO as display name (LP: #709494).

Show diffs side-by-side

added added

removed removed

Lines of Context:
371
371
                msg = 'UbuntuSSOClientGUI: failed set_transient_for win id %r'
372
372
                logger.exception(msg, window_id)
373
373
 
374
 
        # Hidding unused widgets to save some space (LP #627440).
375
 
        self.name_entry.hide()
376
374
        self.yes_to_updates_checkbutton.hide()
377
375
 
378
376
        self.window.show()
777
775
 
778
776
        error = False
779
777
 
780
 
        # Hidding unused widgets to save some space (LP #627440).
781
 
        #name = self.name_entry.get_text()
782
 
        #if not name:
783
 
        #    self.name_entry.set_warning(self.FIELD_REQUIRED)
784
 
        #    error = True
 
778
        name = self.name_entry.get_text()
 
779
        if not name:
 
780
            self.name_entry.set_warning(self.FIELD_REQUIRED)
 
781
            error = True
785
782
 
786
783
        # check email
787
784
        email1 = self.email1_entry.get_text()
820
817
        self.user_password = password1
821
818
 
822
819
        logger.info('Calling register_user with email %r, password <hidden>,' \
823
 
                    ' captcha_id %r and captcha_solution %r.', email1,
824
 
                    self._captcha_id, captcha_solution)
 
820
                    ' name %r, captcha_id %r and captcha_solution %r.', email1,
 
821
                    name, self._captcha_id, captcha_solution)
825
822
        f = self.backend.register_user
826
 
        f(self.app_name, email1, password1, self._captcha_id, captcha_solution,
 
823
        f(self.app_name, email1, password1, name,
 
824
          self._captcha_id, captcha_solution,
827
825
          reply_handler=NO_OP, error_handler=NO_OP)
828
826
 
829
827
    def on_verify_token_button_clicked(self, *args, **kwargs):