ó Û¶eTc@sdZddlZddlZdefd„ƒYZdefd„ƒYZdefd„ƒYZd efd „ƒYZd efd „ƒYZ dS( s* Provides dummy Transaction and Response classes is used by Cheetah in place of real Webware transactions when the Template obj is not used directly as a Webware servlet. Warning: This may be deprecated in the future, please do not rely on any specific DummyTransaction or DummyResponse behavior iÿÿÿÿNtDummyResponseFailurecBseZRS((t__name__t __module__(((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyRst DummyResponsecBsPeZdZd„Zd„Zd„Zd„Zd„Zdd„Z d„Z RS( s± A dummy Response class is used by Cheetah in place of real Webware Response objects when the Template obj is not used directly as a Webware servlet cCs g|_dS(N(t _outputChunks(tself((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyt__init__scCsdS(N((R((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pytflushscCs›|s dSt|tƒr|Sy|jddƒSWnctk ryy|jddƒSWq—tk ru|jddƒSXntk r–t|ddƒSX|S(Nusutf-8tstrictslatin-1tasciitignoreterrors(t isinstancetunicodetdecodetUnicodeDecodeErrortAttributeError(Rtchunk((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyt safeConverts   cCs|jj|ƒdS(N(Rtappend(Rtvalue((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pytwrite/scCst|ƒtdƒdS(Ns (R(Rttxt((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pytwriteln2s csn|p ˆj}ydj|ƒSWnGtk ri}tjdƒtjdƒdj‡fd†|DƒƒSXdS(Nus8Trying to work around a UnicodeDecodeError in getvalue()s4...perhaps you could fix "%s" while you're debuggingtc3s|]}ˆj|ƒVqdS(N(R(t.0tc(R(sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pys =s(RtjoinRtloggingtdebug(Rt outputChunkstchunkstex((RsG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pytgetvalue6s  cGs$g|D]}|j|ƒ^qdS(N(R(Rtlinestln((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyt writelines?sN( RRt__doc__RRRRRtNoneR!R$(((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyRs      tDummyTransactioncBs#eZdZd„Zdd„ZRS(s2 A dummy Transaction class is used by Cheetah in place of real Webware transactions when the Template obj is not used directly as a Webware servlet. It only provides a response object and method. All other methods and attributes make no sense in this context. cOs d|_dS(N(R&t _response(Rtargstkwargs((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyRMscCs+|jdkr$|ptƒ|_n|jS(N(R(R&R(Rtresp((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pytresponsePsN(RRR%RR&R,(((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyR'Ds tTransformerResponsecBseZd„Zd„ZRS(cOs&tt|ƒj||Žd|_dS(N(tsuperR-RR&t_filter(RR)R*((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyRWscKsVtt|ƒj|}|jrR|j}t|tƒrE|ƒ}n|j|ƒS|S(N(R.R-R!R/R ttypetfilter(RR*toutputR/((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyR![s    (RRRR!(((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyR-Vs tTransformerTransactioncBseZd„Zd„ZRS(cOs d|_dS(N(R&R((RR)R*((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyRfscCs|jr|jStƒS(N(R(R-(R((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyR,hs (RRRR,(((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyR3es ( R%Rttypest ExceptionRtobjectRR'R-R3(((sG/opt/freeware/lib64/python2.7/site-packages/Cheetah/DummyTransaction.pyt s  3