mò "á¸Ec@s dZdkZdkZdkZdkZdkZdkZdkZdklZe eiƒƒZ dfd„ƒYZ dk Z de i fd„ƒYZdfd„ƒYZd efd „ƒYZd „Zd „Zd d d„Zd„Zd„Zd„Zd„ZdS(s<$Id: status_handler.py 24763 2004-05-17 05:59:28Z philikon $N(scountertstatus_extensioncBsMtZeƒZddd„Zd„Zd„Zd„Zd„Zd„Z RS( Ns/statusicCsX||_||_||_tidƒ|_g|_x|D]}|i |ƒq=WdS(Ns/status/object/([0-9]+)/.*( tobjectstselft statusdirtallow_emergency_debugtretcompilet hyper_regext hyper_objectstobjecttregister_hyper_object(RRRRR ((t</data/zmath/zope/lib/python/ZServer/medusa/status_handler.pyt__init__s    cCsd|it|ƒfS(Ns"(Rt hit_countertid(R((R t__repr__%scCsI|iƒ\}}}}|t|iƒ |ijp|tdƒ djS(Ns/status/object/( trequestt split_uritpathtparamstquerytfragmenttlenRR(RRRRRR((R tmatch+scCs)t|iƒ\}}}} |ii ƒ||i jo¾t i t ttiƒƒtƒƒ}d|d<|id|ƒxDtt|iƒƒD]-}|i|i|iƒƒ|idƒqŽW|id|i |i titifƒ|iƒn0||i djobd|d<|idƒ|it|i ƒƒ|id|i titifd ƒ|iƒnº||i d jo;d |ddƒƒ} xd|i@D]D} tB| ƒ| jo+tC| dƒo| iD|||ƒq qÈqÈWn|iEdƒdSdS(Ns text/htmls Content-TypesmMedusa Status Reports

Medusa Status Reports

Up: %ss
sw

Channel List


s /channel_lists s<
ss /medusa.gifs image/gifsContent-Lengths/close_zombiessa

Closing all zombie http client connections...

Back to the status pages/emergency_debugs"Moving All Servers...i'iit hyper_respondi”(Ft split_pathRturiRRRRRR t incrementRtstringtjoint english_timetlongttimet START_TIMEtup_timetpushtrangeRRtitstatust medusa_giftwidththeighttdonetchannel_list_producertdatatmessagetinttnowtasyncoret socket_maptkeystchannelt __class__t http_servert http_channelt creation_timetzombie_timeouttcloseRt acceptingttypetaddrtiptporttsockett del_channeltfamily_and_typetfamttypt create_sockettset_reuse_addrtbindtlistenRRtmtatoitgrouptoidRR RthasattrRterror(RRR=RR-R>RR3R"R RRKRHRBRR/RCR%((R thandle_request>s| % )   '            # cCstid|iƒS(Ns%

  • Status Extension Hits : %s(t producerstsimple_producerRR (R((R R&ŸscCs(||ijo|ii|ƒndS(N(R RRtappend(RR ((R R ¤s( t__name__t __module__tcounterR R RRRNR&R (((R Rs    a tlogger_for_statuscBstZd„Zd„ZRS(NcCsdt|iƒt|ƒfS(NsLast %d log entries for: %s(RRtmessagest html_repr(R((R R&¬scCs?d|d<|i}|iƒ|it|ƒƒ|iƒdS(Ns text/plains Content-Type(RRRVtreverseR#tlines_producerR*(RtshRRRV((R R²s    (RRRSR&R(((R RUªs RYcBs#tZd„Zd„Zd„ZRS(NcCs ||_dS(N(tlinesR(RR[((R R ºscCs t|iƒS(N(RRR[(R((R tready½scCsG|io5|id }|id|_ti|dƒdSndSdS(Ni2s t(RR[tchunkRR(RR^((R tmoreÀs   (RRRSR R\R_(((R RY¹s  R+cBstZd„ZRS(NcCsQtd„tiiƒƒ}|iƒti|ddg|dd|gƒdS(NcCsdt|ƒdd!dS(Ns<iiÿÿÿÿs>(treprtx(Ra((R tËss

    Active Channel List

    s
    s
    s!

    Status Report( tmapR0R1tvaluest channel_reprstsortRYR RR(RRRe((R R És    (RRRSR (((R R+ÈscCsbd|jo"titi|dƒdƒ}nd|jo"titi|dƒdƒ}n|S(Nts>(tsRRtsplit(Ri((R tsanitizeÛs  " "cCsBtt|ƒƒ}t|dƒodt|ƒ|fSn|SdS(NRs#%s(RkR`R tsoRLR(R Rl((R RWâsR]cCs2t||d„td„|ƒƒ}|iƒ|S(NcCsd|||fS(Ns%s%s%s(tfRatb(RaRmRn((R RbëscCstt|ƒƒS(N(RkRWRa(Ra((R Rbìs(RctfronttbacktlisttreprsRf(RqRoRpRr((R t html_reprsés cCsJg}x0|D](}t||ƒ\}}|i|ƒq W|i|ƒ|S(N(tresulttpartstparttdivmodtntremRQ(RxRuRvRyRt((R tprogressive_divide÷s cCs’t||ƒ}g}xHtt|ƒƒD]4}||o#|i |||||fƒq(q(W|i ƒ|p|d|dfgSn|SdS(Ni( RzRxtdividerstdivsRtR$RtunitsR%RQt format_stringRX(RxR}R{R~R%RtR|((R tsplit_by_unitss ' cCst|dd dƒS( NR]tKtMtGtTis%d %sB(R]R€RR‚Rƒ(iiiii(RRx(Rx((R t english_bytes scCst|d d d ƒS(Ntsecstminsthourstdaystweekstyearsi<iii4s%d %s(R…R†R‡RˆR‰RŠ(i<i<iii4(RRx(Rx((R Rs(tVERSION_STRINGRR RR0R5R'RORTRR!Rtloggert tail_loggerRURYR+RkRWRsRzRR„R(R0R„RYRWR‹RzR!RR'RkRŒRRRR+RRURORsRTR5R ((R t?s*        “