mň uőOc@sëdZdZdkZdkZdkZdklZlZdkl Z l Z de fd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d e fd „ƒYZd e fd„ƒYZde fd„ƒYZde fd„ƒYZdS(s+ Transforms needed by most or all documents: - `Decorations`: Generate a document's header & footer. - `Messages`: Placement of system messages stored in `nodes.document.transform_messages`. - `TestMessages`: Like `Messages`, used on test runs. - `FinalReferences`: Resolve remaining references. treStructuredTextN(snodessutils(sTransformErrors Transformt DecorationscBs/tZdZdZd„Zd„Zd„ZRS(sD Populate a document's decoration element (header, footer). i4cCs‚|iƒ}|o,|iiƒ}|iƒ}|i|ƒn|i ƒ}|o,|iiƒ}|i ƒ}|i|ƒndS(N( tselftgenerate_headert header_nodestdocumenttget_decorationt decorationt get_headertheadertextendtgenerate_footert footer_nodest get_footertfooter(RRRR RR ((tw/home/project-web/docutils/web-update/infrastructure/update-dir/aux/snapshots/docutils/docutils/transforms/universal.pytapply s    cCsdS(N(tNone(R((RR,sc Cs‹|ii}|ip|ip|ip |ioOg}|io |ip |ioa|io |i}nt i |i |iƒ}|i tiddd|ƒtidƒgƒn|io=ti|itiƒƒ}|itid|dƒƒn|io_|i tidƒtiddddƒtid ƒtidd dd ƒtid ƒgƒntidd|ŒgSndSdS( NtsView document sourcetrefuris. sGenerated on: s Generated by tDocutilss http://docutils.sourceforge.net/s from Rs(http://docutils.sourceforge.net/rst.htmls source. (RRtsettingst generatort datestampt source_linkt source_urlttextt_sourcetsourcetutilst relative_patht _destinationR tnodest referencetTextttimetstrftimetgmtimetappendt paragraphR(RRRRR((RR /s" (      " _(t__name__t __module__t__doc__tdefault_priorityRRR (((RRs  tExposeInternalscBs&tZdZdZd„Zd„ZRS(sL Expose internal attributes if ``expose_internals`` setting is set. iHcCst|tiƒ S(N(t isinstancetnodeR R"(RR.((Rtnot_TextZscCsƒ|iiiooxl|ii|iƒD]Q}xH|iiiD]7}t||dƒ}|dj o||d|R9R<R@((RRos   (R(R)R*R+R(((RR5fs tFilterMessagescBstZdZdZd„ZRS(s; Remove system messages below verbosity threshold. ifcCsRxK|iitiƒD]4}|d|iiijo|ii |ƒqqWdS(NR6( RRR1R tsystem_messageR.R:R;R?tremove(RR.((RR‡s(R(R)R*R+R(((RRBs t TestMessagescBstZdZdZd„ZRS(sk Append all post-parse system messages to the end of the document. Used for testing purposes. ipcCs8x1|iiD]#}|ip|i|7_q q WdS(N(RRR8R>R?(RR>((RR—s  (R(R)R*R+R(((RREs t StripCommentscBstZdZdZd„ZRS(sq Remove comment elements from the document tree (only if the ``strip_comments`` setting is enabled). iäcCsH|iiio4x1|iitiƒD]}|ii |ƒq&WndS(N( RRRtstrip_commentsR1R tcommentR.R?RD(RR.((RRŚs(R(R)R*R+R(((RRFs tStripClassesAndElementscBs&tZdZdZd„Zd„ZRS(sĎ Remove from the document tree all elements with classes in `self.document.settings.strip_elements_with_classes` and all "classes" attribute values in `self.document.settings.strip_classes`. i¤cCsÜ|iiip |iiipdSntg}|iiipgD]}||dfqF~ƒ|_ tg}|iiipgD]}||dfq†~ƒ|_x-|ii |i ƒD]}|i i|ƒqžWdS(N(RRRtstrip_elements_with_classest strip_classestdictt_[1]tkeyRtstrip_elementsR1t check_classesR.R?RD(RR.RMRN((RRśs @@cCsnt|tiƒoWxT|dD]C}||ijo|di|ƒn||ijodSqqWndS(NR7i( R-R.R tElementt class_valueRRKRDRO(RR.RR((RRPĹs (R(R)R*R+RRP(((RRIŹs  (R*t __docformat__tretsysR#tdocutilsR Rtdocutils.transformstTransformErrort TransformRR,R5RBRERFRI(RXR,RERR5RYRSRIRURTRBRFRR#R ((Rt? s   :