~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-04-16 11:08:11 UTC
  • mfrom: (6521 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6522.
  • Revision ID: jelmer@samba.org-20120416110811-0y996ihqy9o2bb1t
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    trace,
28
28
    transport,
29
29
    )
30
 
from bzrlib.config import AuthenticationConfig, GlobalConfig
 
30
from bzrlib.config import AuthenticationConfig, GlobalStack
31
31
from bzrlib.i18n import gettext
32
32
 
33
33
LAUNCHPAD_BASE = 'https://launchpad.net/'
55
55
        disagree about username.
56
56
    """
57
57
    if _config is None:
58
 
        _config = GlobalConfig()
 
58
        _config = GlobalStack()
59
59
 
60
 
    username = _config.get_user_option('launchpad_username')
 
60
    username = _config.get('launchpad_username')
61
61
    if username is not None:
62
62
        auth = AuthenticationConfig()
63
63
        auth_username = _get_auth_user(auth)
72
72
 
73
73
def _set_global_option(username, _config=None):
74
74
    if _config is None:
75
 
        _config = GlobalConfig()
76
 
    _config.set_user_option('launchpad_username', username)
 
75
        _config = GlobalStack()
 
76
    _config.set('launchpad_username', username)
77
77
 
78
78
 
79
79
def set_lp_login(username, _config=None):