-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyc

ó
Đ~0Oc@@sődZddlmZddlmZmZmZddlmZm	Z	ddl
mZdZdej
fd„ƒYZd	ej
fd
„ƒYZdej
fd„ƒYZdd
„Zdd„Zdd„Zdd„Zdd„Zdd„ZdS(sˇFunctions to manage the user's Launchpad user ID.

This allows the user to configure their Launchpad user ID once, rather
than once for each place that needs to take it into account.
i(tabsolute_import(terrorsttracet	transport(tAuthenticationConfigtGlobalStack(tgettextshttps://launchpad.net/tUnknownLaunchpadUsernamecB@seZdZRS(s6The user name %(user)s is not registered on Launchpad.(t__name__t
__module__t_fmt(((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR$stNoRegisteredSSHKeyscB@seZdZRS(shThe user %(user)s has not registered any SSH keys with Launchpad.
See <https://launchpad.net/people/+me>(RR	R
(((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR(stMismatchedUsernamescB@seZdZRS(sjbazaar.conf and authentication.conf disagree about launchpad account name.  Please re-run launchpad-login.(RR	R
(((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR-scC@s–|dkrtƒ}n|jdƒ}|dk	r’tƒ}t|ƒ}|dkrwtjtdƒƒt||ƒq’||kr’t	ƒ‚q’n|S(s“Return the user's Launchpad username.

    :raises: MismatchedUsername if authentication.conf and bazaar.conf
        disagree about username.
    tlaunchpad_usernames-Setting ssh/sftp usernames for launchpad.net.N(
tNoneRtgetRt_get_auth_userRtnoteRt_set_auth_userR(t_configtusernametautht
auth_username((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pytget_lp_login3s	cC@s,|dkrtƒ}n|jd|ƒdS(NR
(RRtset(RR((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyt_set_global_optionIscC@st||ƒt|ƒdS(s!Set the user's Launchpad usernameN(RR(RR((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pytset_lp_loginOs
cC@s.|dkrtƒ}n|jddƒ}|S(Ntsshs.launchpad.net(RRtget_user(RR((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyRUscC@s2|dkrtƒ}n|jdd|dƒdS(Nt	Launchpads.launchpad.netR(RRtset_credentials(RR((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR[scC@sw|dkrtjtƒ}ny|jd|ƒ}Wn#tjk
rZtd|ƒ‚nX|sstd|ƒ‚ndS(sCheck whether the given Launchpad username is okay.

    This will check for both existence and whether the user has
    uploaded SSH keys.
    s~%s/+sshkeystuserN(	RRtget_transport_from_urltLAUNCHPAD_BASEt	get_bytesRt
NoSuchFileRR(Rt
_transporttdata((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pytcheck_lp_loginbsN(t__doc__t
__future__RtbzrlibRRRt
bzrlib.configRRtbzrlib.i18nRR!tBzrErrorRRRRRRRRRR&(((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee