m /Ec @sdZddd!ZdkZdkZdkZdkZdkZdkZdkZdkl Z dk l Z dk l Z dklZd klZd klZd klZd efd YZdeifdYZdfdYZdfdYZdZdZdZdZeideiZ dZ!dZ"dZ#dZ$de%ge%fdZ&dZ'hZ(d e%d!e#fd"e%d#e"fd$e%d%e$fde%ge&fd&e%fe'fd'e%d(e!fd)ei e)ffZ*x+e*D]#\Z+Z,Z-e-e(e+tatypet encodestringtreplaceR(R R"RD((Rt__set_authtokenXs 0cCsg}x|iD]r\}}|id}|djo||d}|| }nd}ti |t }|i |||qWdi |S(Nt__iitstringt&(tformdatatargsR?tkeyR@trfindtnttagtvarfuncstgettmarshal_stringtfunctappendR(R RLRTR@RORPRMRK((Rt__enc_formdatads  cCst|iS(N(t MultiPartRLtrender(R RL((Rt__enc_multipartpsRicCsyt}|i|i|i|i||x*|i D]\}} |i || q?W|o|in|o|i|n|i\} }} } |ii} |iWnttinXt| || | | S(N(RthtconnectR R/R0R tmethodR1R"R?ROtvt putheaderteht endheaderstbodyR R#RRRthdrstgetfiletreadRRRR$t exc_valuet http_response(R R\R1R"RaR_RRZROR]RRRRb((Rt __snd_requestss"  cKsU|i|}|i|}|od|i|fp|i}|id||S(Ns%s?%stGET(R t_Resource__get_headersR=R"t_Resource__enc_formdatatqueryR1t_Resource__snd_request(R R=R"R1Rk((RRRs$cKsU|i|}|i|}|od|i|fp|i}|id||S(Ns%s?%stHEAD(R RiR=R"RjRkR1Rl(R R=R"R1Rk((Rtheads$cKs|i|}d}xF|iD]8\}}|ddjpt |do d}Pq"q"W|djo2|i |}|i d|i ||ddSnI|i|}d|d %s %s stext/xml; charset="utf-8"s Content-TypesContent-LengthtTimeoutRtLOCKN(ssharedR(swrite(RR(tscopeRRwRR RiR=R"townerRaR RtttimeoutRlR1( R RRwRRRR=RaR"((Rtlocks         cKs?|i|}dt|}||d<|id|i|S(sRemove the lock identified by token from the resource and all other resources included in the lock. If all resources which have been locked under the submitted lock token can not be unlocked the unlock method will fail.ss Lock-TokentUNLOCKN(R RiR=R"R ttokenRlR1(R RR=R"((Rtunlocks  cCs|id|S(NR(R RR(R R((RtallpropsscCsd}|i||S(Ns` (RaR RR(R RRa((Rt propnamesscGs>|p|iSndi|}d|}|i|dS(Ns/> <%s> i(tnamesR RRttagsRa(R RRaR((Rtgetpropss  cKsw|p tdng}x4|iD]&\}}|id|||fq'Wdi|}d|}|i |S(NsNo properties specified.s <%s>%ss s %s ( tpropsRRR?RMR@RURRaR R(R RRaR@RRM((Rtsetprops%s   cGs:|p tdndi|}d|}|i|S(NsNo property names specified.s/> <%s> (RRRRRaR R(R RRaR((Rtdelprops6s   cCs d|iS(Ns(R R*(R ((Rt__str__Ds(#RRt__doc__RR2R7RiR;RjRsRlRRRnRutretcompiletsearchRRRRRRRRRRRRRRRRRt__repr__(((RR'6s:      !          RfcBsAtZdZdZddZdZdZdZRS(NcCs1||_||_||_||_||_dS(N(RR R%RRR"Ra(R RRRR"Ra((RR2Qs     cCsd|i|ifS(Ns%s %s(R RR(R ((Rt get_statusXscCs|iii|i|S(N(R R"tdictRRR5tlowerR@(R R5R@((Rt get_header[scCs |iiS(N(R R"R(R ((Rt get_headers^scCs|iS(N(R Ra(R ((Rtget_bodyascCsig}|id|i|i|ift|i|ii|id|i|idi |S(Ns %s %s %s s R( RRUR R%RRtmapR"RaR(R R((RRds # ( RRR2RRRRRR(((RRfPs      s  Brian Lloyd My New Title sG Brian Lloyd blue 72 Brian Lloyd red s s shttp://([^:/]+)(:[0-9]+)?(/.+)?cCsd|tt|fS(Ns%s=%s(R5tquoteR R@(R5R@((RRSscCsd||fS(Ns %s:float=%s(R5R@(R5R@((Rt marshal_floatscCsd||fS(Ns %s:int=%s(R5R@(R5R@((Rt marshal_intscCs3d||f}|ddjo|d }n|S(Ns %s:long=%sitL(R5R@tvalue(R5R@R((Rt marshal_longstlistcCspg}xZ|D]R}t|}|||fjo tdn|it d||f|q Wdi |S(Ns*Invalid recursion in data to be marshaled.s%s:%sRJ( tresulttseqR]Rwttptlttttt TypeErrorRUt marshal_varR5ttnameR(R5RRRRRRR]((Rt marshal_lists  $cCst||dS(Nttuple(RR5R(R5R((Rt marshal_tuplesRitfloatf1.0tlonglRRIRRcCstit|t||S(N(RQRRRwR@RSR5(R5R@((RRsRWcBstZdZdZdZhdd<dd<dd<d d<d d<d d<d d <dd<dd<dd