~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2012-02-14 17:22:37 UTC
  • mfrom: (6466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120214172237-7dv7er3n4uy8d5m4
Merge trunk

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):