-=[ 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/lp_directory.pyc

σ
ξ:οNc@@sώdZddlmZddlmZddlZddlmZmZm	Z	m
Z
ddlmZddl
mZmZddlmZe
jd	ƒe
jd
ƒidd6d
d6dd6dd6dd6dd6dd6Zdefd„ƒYZd„ZdS(s%Directory lookup that uses Launchpad.i(tabsolute_import(turlsplitN(tdebugterrorsttracet	transport(tgettext(tLaunchpadServicetResolveLaunchpadPathRequest(tget_lp_loginsbzr+sshtlptnattytntmavericktmtlucidtltkarmictktjauntytjthardythtdappertdtLaunchpadDirectorycB@sMeZd„Zd„Zd„Zd„Zd„Zd„Zedd„Z
RS(cC@s(|dko'|jdƒp'|jdƒS(s’Does the URL require a Launchpad login in order to be reached?

        The URL is specified by its parsed components, as returned from
        urlsplit.
        sbzr+sshtsftps
launchpad.nets
launchpad.dev(sbzr+sshR(tendswith(tselftschemetnetloctpathtquerytfragment((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyt_requires_launchpad_login7scC@s
|j|ƒS(sSee DirectoryService.look_up(t_resolve(Rtnameturl((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pytlook_upBsc
C@sζt|ƒ\}}}}}|dkr3tj}ntj|}d|f}t}|jdƒr±|jdƒ}	t|	ƒdks₯|	ddkr»t|	ƒd	kr»t}q»n
|d
7}|rΤ|j	|||ƒSi||gd6S(
Ntsbzr+ssh://bazaar.%s/t~t/iitubuntutdebianis+branch/turls(R*R+(
RRtDEFAULT_INSTANCEtLAUNCHPAD_DOMAINStFalset
startswithtsplittlentTruet_resolve_via_xmlrpc(
RRR%t_request_factoryt_Rtbase_urltbaset
maybe_invalidtparts((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyt_resolve_locallyFs

"
cC@sftj|ƒ}||ƒ}y|j|ƒ}Wn1tjk
ra}tjd|d|jƒ‚nX|S(NRtextra(Rtfor_urltsubmitt	xmlrpclibtFaultRt
InvalidURLtfaultString(RRR%R5tservicetresolvetresulttfault((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyR4`s	c
C@s6t|ƒ\}}}}}|dkr,|dkrBd}t}n'|dkr]d}i}ntdƒ‚|jdƒ}	t|	ƒdkr£d}
|	d}d}n:t|	ƒd	krΚd
}
|	\}}ntjd|ƒ‚|j||ƒ}|
t	d|d
|d|ƒ}t|ƒ\}}}}}n||fS(NR*tdebianlpR+s%scheme should be ubuntu: or debianlp:R)islp:%(distro)s/%(project)siis$lp:%(distro)s/%(series)s/%(project)ssBad path: %stdistrotseriestproject(subuntuRG(
Rt_ubuntu_series_shortcutstAssertionErrorR1R2tNoneRRAtgettdict(
RR%RRRR R!RHt
distro_seriest
path_partstlp_url_templateRJRI((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyt_update_url_schemejs2		
		
cC@sO|jdƒrK|dkr6tjd|ddƒ‚nd||d}n|S(Ns~/RR<sCCannot resolve "~" to your username. See "bzr help launchpad-login"R(i(R0RMRRA(RRR%tlp_login((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyt_expand_user’scC@sγ|j|ƒ\}}|d
kr-tƒ}n|jdƒ}|j|||ƒ}|d
k	rΜ|j|||ƒ}dtjkrα|}|j|||ƒ}t	j
tdƒj||d|dƒƒqαn|j|||ƒ}dtjkrt	j
d||ƒnt}xΠ|dD]¬}t|ƒ\}}	}}
}|j||	||
|ƒr‘|d
k	rcPn|d
krΓ|sŽt	jdƒt}qŽqΓqytj|ƒWntjtjfk
rΑqXPqWtjd|dd	ƒ‚|S(s(Resolve the base URL for this transport.R)t	launchpads,resolution for {0}
  local: {1}
 remote: {2}R,sresolve_lp_path(%r) == %rs“You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".RR<sno supported schemesN(RSRMR	tstripRUR;Rtdebug_flagsR4RtnoteRtformattmutterR/RR"twarningR3Rt
get_transportRt	PathErrortTransportErrorRA(RR%R5t	_lp_loginRREt	local_rest
_warned_loginRRR R!((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyR#›sF			N(t__name__t
__module__R"R&R;R4RSRURRMR#(((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyR5s				
	(	
cC@sgS(N((((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pytget_test_permutationsΞs(t__doc__t
__future__RturlparseRR?tbzrlibRRRRtbzrlib.i18nRt(bzrlib.plugins.launchpad.lp_registrationRRt bzrlib.plugins.launchpad.accountR	t!register_urlparse_netloc_protocolRKtobjectRRe(((sI/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_directory.pyt<module>s&"


™

Copyright © 2017 || Recoded By Mr.Bumblebee