mō i"\Bc@sĪdkZdkZdkZdkZdefd„ƒYZdefd„ƒYZdZd„Zdfd„ƒYZ d e fd „ƒYZ d e fd „ƒYZ d „Z d„Z d„Zd„Zd„ZdS(NtNoProcessorErrorcBstZRS(N(t__name__t __module__(((tl/home/radix/Projects/Twisted/branches/releases/twisted-core-2.5.x-2329-2/Twisted.exp/twisted/lore/process.pyR stProcessingFailurecBstZRS(N(RR(((RR siOcCs?tg}|idƒD]}|djo |dqq~ƒS(Nt/t.i(tlent_[1]tdtsplittel(R RR ((RtdircountstWalkercBs8tZd„Zdd„Zd„Zd„Zd„ZRS(NcCs1||_||_||_g|_g|_dS(N(tdftselftlinkreltfexttwalkedtfailures(RRRR((Rt__init__s     tcCs,t|ƒ|_tii||i|ƒdS(N(R ttopdirRt basecounttostpathtwalktprefix(RRR((RtwalkdirscCs…|dt|ƒ|i}xc|D][}ti i ||ƒ}ti i |ƒd}||i jo|ii||fƒq"q"WdS(Ns../i(RR R RRRtnamestnameRRtjointfullpathtsplitextRRtappend(RRR RRRR R((RR#scCsãd}tiƒdt_xŠ|iD]ž\}}|i|}|d7}t i i |ƒd}|i t|ƒt|iƒ|ƒy|i||ƒWq#tj o}|ii||fƒq#Xq#Wtiƒ|i ddƒdS(Niif1.0(titindexert clearEntriesttreetfilenumRRRR RRR!tfnamet percentdonetfloatRRRteRR"t generateIndextNone(RRR+R#R(R ((Rtgenerate+s     # cCs—d}t||ƒ}||}dd|d||pdf}|tt|ƒd7}|d7}t i i |ƒt i i ƒ|djoHndS(Ni(s [%s%s] (%s)t#t s*Done*s (tproglentinttpercentthashestspacesR(tprogstattcolsRtsyststdouttwritetflushR-(RR3R(R1R5R4R6((RR);s "   (RRRRRR.R)(((RR s     tPlainReportingWalkercBstZd„ZRS(NcCs|o |GHndS(N(R((RR3R(((RR)Js(RRR)(((RR<HstNullReportingWalkercBstZd„ZRS(NcCsdS(N((RR3R(((RR)Ps(RRR)(((RR=NscCstii|ƒd|S(Ni(RRR!toriginalFileNametoutputExtension(R>R?((RtparallelGeneratorSscCstii|ƒdd|S(Nitfoo(RRR!R>R?(R>R?((RtfooAddingGeneratorVscCs”tii|ƒ}tii|ƒ}tii||fƒ|jo td|d|dƒ‚ntii|tii |ƒƒ}t i ||ƒS(NsOriginal file name 's' not under input directory 't'(RRtabspathR>tinputdirt abs_inputdirt commonprefixt ValueErrorRt outputdirtbasenamet adjustedPathR&tgetOutputFileNameR?(R>R?RERIRFRK((RtoutputdirGeneratorYs  !cs)ˆidƒo‡d†SntiSdS(NRIcs=t||tiiˆidƒƒtiiˆidƒƒƒS(NRERI(RMR>R?RRRDtconfigtget(R>R?(RN(Rtes (RNROR&RL(RNt outputExt((RNRtgetFilenameGeneratorcscCsyt|id|ƒ}Wn'tj otd|dƒ‚nX|idƒo|d}ndk l }|d}||t ||ƒƒS(Nt generate_scannot generate s outputtext(s htmlDefault( tgetattrtmoduletfactorytoutputtmtAttributeErrorRRNRORTtdefaultt htmlDefaultRR(RVRXRNR\RYRT((Rt getProcessorls  (R8RR&R$t ExceptionRRR7R R R<R=R@RBRMRRR](RR]RRRRBR&R7R$R R8R<R=R RMRR@((Rt?s   2