mς ρƒCc@sζdZdkZdklZdklZlZlZdklZdk l Z l Z dk l Z dklZdZe d „Zd „Zd fd „ƒYZd „Zd„Zd„Zd„ZedjoeƒieƒndS(s$Revision: 1.1.1.1 $N(sref(stimesstrftimesgmtime(slog(sServiceRequests SERVER_RETURN(sCookieFileImpl(s CgiRequesticCs2t||ƒt_|_|iƒi|ƒ}dS(N( tServiceRequestt requestImpltreqtsyststdouttpsot getSessiont sessionImpltsession(RRRR((t7/usr/home/thanos/public_html/pso-example/pso/service.pytfixup-scCs!td|ƒ|iƒiƒdS(Ns cleaing up(tlogRRtclose(R((R tcleanup1s tServiceHandlercBstZdZed„ZRS(Nic CsςyŠti}ti}ttƒt_}||_|idƒ}|ot|ddƒt_n|o|i |ƒ|_ n||ƒ}Wnatj o }nN|t_dk}|ip|idtiƒn |iƒ|t_nXdS(NtPSOLogtaitfile(RRtstderrRt CgiRequestRt getEnvirontlogfiletopenRRRthandlertstatust SERVER_RETURNt tracebacktselft PRODUCTIONt print_exc( RRRRRRRRR((R trun8s(       (t__name__t __module__RtCookieFileImplR(((R R6scCs dGHdS(Ns hello world((R((R ttestPscCsdGH|iddƒdS(Ns hello worldt content_types text/plain(Rtsend_http_header(R((R ttest1SscCsdGH|idƒdS(Nshi thereiΜ(Rt sendStatus(R((R ttest2WscCsdGH|idƒdS(Nshi thereshttp://www.w3c.org/(Rtredirect(R((R ttest3[st__main__(t __version__RtweakreftrefttimetstrftimetgmtimetutilR trequestRRRR!t cgirequestRtOKR R RR"R%R'R)RR(RR%R)R'R!R RRR0RR RR.R"R4R+R-R/R ((R t?s"