-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/transport/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyc

σ
ξ:οNc@@sLdZddlmZddlmZdejfd„ƒYZd„ZdS(sΘImplementation of Transport that decorates another transport.

This does not change the transport behaviour at all, but provides all the
stub functions to allow other decorators to be written easily.
i(tabsolute_import(t	transporttTransportDecoratorcB@sXeZdZd!d!d„Zd„Zd!d„Zd!d„Zd„Zd!d„Z	d„Z
d„Zd	„Ze
d
„ƒZd„Zd„Zd
„Zd„Zd!d„Zd!d„Zd!d„Zd!d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Ze eedƒZ!d„Z"d„Z#d„Z$d „Z%RS("sώA no-change decorator for Transports.

    Subclasses of this are new transports that are based on an
    underlying transport and can override or intercept some
    behavior.  For example ReadonlyTransportDecorator prevents
    all write attempts, and FakeNFSTransportDecorator simulates
    some NFS quirks.

    This decorator class is not directly usable as a decorator:
    you must use a subclass which has overridden the _get_url_prefix() class
    method to return the url prefix for the subclass.
    cC@s’|jƒ}|j|ƒs4td||fƒ‚n|t|ƒ}|dkretj|ƒ|_n	||_tt	|ƒj
||jjƒdS(sΫSet the 'base' path of the transport.

        :param _decorated: A private parameter for cloning.
        :param _from_transport: Is available for subclasses that
            need to share state across clones.
        s-url %r doesn't start with decorator prefix %rN(t_get_url_prefixt
startswitht
ValueErrortlentNoneRt
get_transportt
_decoratedtsuperRt__init__tbase(tselfturlR	t_from_transporttprefixtnot_decorated_url((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR*s	cC@s|jƒ|jj|ƒS(sSee Transport.abspath().(RR	tabspath(R
trelpath((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR=scC@s|jj||d|ƒS(sSee Transport.append_file().tmode(R	tappend_file(R
RtfR((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyRAscC@s|jj||d|ƒS(sSee Transport.append_bytes().R(R	tappend_bytes(R
RtbytesR((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyREscC@s
|jjƒS(s-See Transport._can_roundtrip_unix_modebits().(R	t_can_roundtrip_unix_modebits(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyRIscC@s2|jj|ƒ}|j|jƒ|j||ƒS(sSee Transport.clone().(R	tclonet	__class__RR(R
toffsettdecorated_clone((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyRMscC@s|jj|ƒS(sSee Transport.delete().(R	tdelete(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyRTscC@s|jj|ƒS(sSee Transport.delete_tree().(R	tdelete_tree(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyRXscC@s|jS(s,See bzrlib.transport.Transport.external_url.(R(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pytexternal_url\scC@st|jƒ‚dS(s(Return the URL prefix of this decorator.N(tNotImplementedErrorR(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyRcscC@s|jj|ƒS(sSee Transport.get().(R	tget(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR"hscC@s
|jjƒS(N(R	tget_smart_client(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR#lscC@s|jj|ƒS(sSee Transport.has().(R	thas(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR$oscC@s
|jjƒS(sSee Transport.is_readonly.(R	tis_readonly(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR%sscC@s|jj||ƒS(sSee Transport.mkdir().(R	tmkdir(R
RR((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR&wscC@s|jj|d|ƒS(s See Transport.open_write_stream.R(R	topen_write_stream(R
RR((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR'{scC@s|jj|||ƒS(sSee Transport.put_file().(R	tput_file(R
RRR((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR(scC@s|jj|||ƒS(sSee Transport.put_bytes().(R	t	put_bytes(R
RRR((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR)ƒscC@s
|jjƒS(sSee Transport.listable.(R	tlistable(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR*‡scC@s
|jjƒS(s%See Transport.iter_files_recursive().(R	titer_files_recursive(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR+‹scC@s|jj|ƒS(sSee Transport.list_dir().(R	tlist_dir(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR,scC@s|jj||ƒS(sSee Transport._readv.(R	t_readv(R
Rtoffsets((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR-“scC@s
|jjƒS(s&See Transport.recommended_page_size().(R	trecommended_page_size(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR/—scC@s|jj||ƒS(N(R	trename(R
trel_fromtrel_to((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR0›scC@s|jj|ƒS(sSee Transport.rmdir.(R	trmdir(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR3žscC@s
|jjS(N(R	tsegment_parameters(R
((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyt_get_segment_parameters’scC@s||j_dS(N(R	R4(R
tvalue((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyt_set_segment_parameters₯ss See Transport.segment_parameterscC@s|jj|ƒS(sSee Transport.stat().(R	tstat(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR8«scC@s|jj|ƒS(sSee Transport.lock_read.(R	t	lock_read(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR9―scC@s|jj|ƒS(sSee Transport.lock_write.(R	t
lock_write(R
R((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR:³scC@sF|jj||ƒ}|dk	r>|j|jƒ|j|ƒSdSdS(N(R	t_redirected_toRRRR(R
tsourcettargett
redirected((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyR;·s
N(&t__name__t
__module__t__doc__RRRRRRRRRR tclassmethodRR"R#R$R%R&R'R(R)R*R+R,R-R/R0R3R5R7tpropertyR4R8R9R:R;(((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyRsD																					cC@sgS(sΖReturn the permutations to be used in testing.

    The Decorator class is not directly usable, and testing it would not have
    any benefit - its the concrete classes which need to be tested.
    ((((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pytget_test_permutationsΐsN(RAt
__future__RtbzrlibRt	TransportRRD(((s>/usr/lib/python2.7/dist-packages/bzrlib/transport/decorator.pyt<module>s€

Copyright © 2017 || Recoded By Mr.Bumblebee