~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_registration.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-14 16:24:31 UTC
  • mfrom: (2978.5.2 launchpad_plugin_162494)
  • Revision ID: pqm@pqm.ubuntu.com-20071114162431-vdx7u28fh4et71b6
(John Arbash Meinel) Fix 'bzr register-branch' (bug #162494)

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
 
100
100
    def gather_user_credentials(self):
101
101
        """Get the password from the user."""
102
 
        config = config.GlobalConfig()
103
 
        self.registrant_email = config.user_email()
 
102
        the_config = config.GlobalConfig()
 
103
        self.registrant_email = the_config.user_email()
104
104
        if self.registrant_password is None:
105
105
            auth = config.AuthenticationConfig()
106
106
            scheme, hostinfo = urlsplit(self.service_url)[:2]
109
109
            # We will reuse http[s] credentials if we can, prompt user
110
110
            # otherwise
111
111
            self.registrant_password = auth.get_password(scheme, hostinfo,
 
112
                                                         self.registrant_email,
112
113
                                                         prompt=prompt)
113
114
 
114
115
    def send_request(self, method_name, method_params, authenticated):