~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Rename functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
    _fmt = "The user %(user)s has not registered any SSH keys with Launchpad."
15
15
 
16
16
 
17
 
def get_lp_username(config=None):
 
17
def get_lp_login(config=None):
18
18
    """Return the user's Launchpad Username"""
19
19
    if config is None:
20
20
        config = GlobalConfig()
22
22
    return config.get_user_option('launchpad_username')
23
23
 
24
24
 
25
 
def set_lp_username(username, config=None):
 
25
def set_lp_login(username, config=None):
26
26
    """Set the user's Launchpad username"""
27
27
    if config is None:
28
28
        config = GlobalConfig()
30
30
    config.set_user_option('launchpad_username', username)
31
31
 
32
32
 
33
 
def check_lp_username(username, transport=None):
 
33
def check_lp_login(username, transport=None):
34
34
    """Check whether the given Launchpad username is okay.
35
35
 
36
36
    This will check for both existance and whether the user has