-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
Đ~0Oc @@ ső d Z d d l m Z d d l m Z m Z m Z d d l m Z m Z d d l
m Z d Z d e j
f d YZ d e j
f d
YZ d e j
f d YZ d d
Z d d Z d d Z d d Z d d Z d d Z d S( 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 ( t absolute_import( t errorst tracet transport( t AuthenticationConfigt GlobalStack( t gettexts https://launchpad.net/t UnknownLaunchpadUsernamec B@ s e Z d Z RS( s6 The 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 $ s t NoRegisteredSSHKeysc B@ s e Z d Z RS( sh The user %(user)s has not registered any SSH keys with Launchpad.
See <https://launchpad.net/people/+me>( R R R
( ( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR ( s t MismatchedUsernamesc B@ s e Z d Z RS( sj bazaar.conf and authentication.conf disagree about launchpad account name. Please re-run launchpad-login.( R R R
( ( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR - s c C@ s | d k r t } n | j d } | d k r t } t | } | d k rw t j t d t | | q | | k r t q n | S( s Return the user's Launchpad username.
:raises: MismatchedUsername if authentication.conf and bazaar.conf
disagree about username.
t launchpad_usernames- Setting ssh/sftp usernames for launchpad.net.N(
t NoneR t getR t _get_auth_userR t noteR t _set_auth_userR ( t _configt usernamet autht
auth_username( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyt get_lp_login3 s c C@ s, | d k r t } n | j d | d S( NR
( R R t set( R R ( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyt _set_global_optionI s c C@ s t | | t | d S( s! Set the user's Launchpad usernameN( R R ( R R ( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyt set_lp_loginO s
c C@ s. | d k r t } n | j d d } | S( Nt sshs .launchpad.net( R R t get_user( R R ( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR U s c C@ s2 | d k r t } n | j d d | d d S( Nt Launchpads .launchpad.netR ( R R t set_credentials( R R ( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyR [ s c C@ sw | d k r t j t } n y | j d | } Wn# t j k
rZ t d | n X| ss t d | n d S( 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/+sshkeyst userN( R R t get_transport_from_urlt LAUNCHPAD_BASEt get_bytesR t
NoSuchFileR R ( R t
_transportt data( ( sD /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/account.pyt check_lp_loginb s N( t __doc__t
__future__R t bzrlibR R R t
bzrlib.configR R t bzrlib.i18nR R! t BzrErrorR R R R R R R R R R&