;ò ÓÊ8c@s‚ddd!ZdkZdkZdklZdfd„ƒYZdefd„ƒYZd fd „ƒYZd efd „ƒYZdS( s$Revision: 1.4 $i iüÿÿÿN(sjoinsDocumentcBsqtZeiddddƒZeiZeiZd„Zd„Z d„Z dd d „Z e i dd d „ZRS( Nsnames generatorscontentsHyperText package (Python)cOs½dkl}l}|i|_t|i||ƒ|_ ||i ƒ|_ t |dƒo|i i |iƒnt |dƒo|i i |iƒn||i |i ƒ|_|iƒdS(N(sHEADsHTMLsstylestitle(sHTMLsHEADsselfsDOCTYPEsdoctypesapplys body_elementscontentsattrssbodys generatorsheadshasattrsappendsstylestitleshtmlssetup(sselfscontentsattrssHEADsHTML((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys__init__s cCsdS(N((sself((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pyssetupscGst|iii|ƒdS(N(smapsselfsbodyscontentsappendsitems(sselfsitems((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pysappendsiicCs5t|ii||ƒ|ii||ƒgdƒSdS(Ns(sjoinsselfsdoctypes__str__sindentsperlevelshtml(sselfsindentsperlevel((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys__str__s*cCs0|ii|||ƒ|ii|||ƒdS(N(sselfsdoctypeswritetosfpsindentsperlevelshtml(sselfsfpsindentsperlevel((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pyswriteto s(s__name__s __module__sHTMLsMETAs generatorsDOCTYPEsBODYs body_elements__init__ssetupsappends__str__ssyssstdoutswriteto(((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pysDocuments      sFramesetDocumentcBstZeiZeiZRS(N(s__name__s __module__sHTMLsDOCTYPE_framesetsDOCTYPEsFRAMESETs body_element(((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pysFramesetDocument%s sCGIMixIncBs>tZd„Zd„Zddd„Zeiddd„ZRS(NcCsd|_g|_d|_dS(Ns text/htmli(sselfs content_typesheaderssnobody(sself((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pyssetup-s  cCsd|iSdS(NsContent-Type: %s (sselfs content_type(sself((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys_str_content_type2siicCsu|i}|i|iƒƒ|i o<|i|ii||ƒƒ|i|i i||ƒƒnt |dƒSdS(Ns( sselfsheaderssssappends_str_content_typesnobodysdoctypes__str__sindentsperlevelshtmlsjoin(sselfsindentsperlevelss((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys__str__5s    cCsb|i|iƒ|i|iƒƒ|i o0|ii|||ƒ|i i|||ƒndS(N( sfps writelinessselfsheadersswrites_str_content_typesnobodysdoctypeswritetosindentsperlevelshtml(sselfsfpsindentsperlevel((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pyswriteto=s  (s__name__s __module__ssetups_str_content_types__str__ssyssstdoutswriteto(((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pysCGIMixIn+s  s HTTPMixIncBsDtZd„ZdZd„Zddd„Zeiddd„ZRS(NcCs>ti|ƒt|dƒ oddf|_nt|_dS(NsresponseiÈsOutput follows(sCGIMixInssetupsselfshasattrsresponsesNonesdate(sself((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pyssetupGs s#%s %s %s Server: %s %s Date: %s cCsœt|dƒoZt|ii|iƒ|i|ii|id|id|ii|ii |i fSn/|id|id|iddd|i fSdS(NsrequestiisHTTP/1.0s Dunno/0.0s BeatzMe/0.0( shasattrsselfsapplysrequests log_requestsresponseshttp_response_strsrequest_versionsserver_versions sys_versionsdate(sself((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys_str_http_responseOsDiicCs,t|iƒti|||ƒgdƒSdS(Ns(sjoinsselfs_str_http_responsesCGIMixIns__str__sindentsperlevel(sselfsindentsperlevel((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys__str__bs!cCs-|i|iƒƒti||||ƒdS(N(sfpswritesselfs_str_http_responsesCGIMixInswritetosindentsperlevel(sselfsfpsindentsperlevel((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pyswritetofs( s__name__s __module__ssetupshttp_response_strs_str_http_responses__str__ssyssstdoutswriteto(((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys HTTPMixInEs   ( s __version__sHTMLssyssstringsjoinsDocumentsFramesetDocumentsCGIMixIns HTTPMixIn(sCGIMixInsDocumentsjoinsFramesetDocumentssyssHTMLs HTTPMixIns __version__((sD/mnt/gmirror/ports/textproc/py-HyperText/work/HyperText/Documents.pys?s