ó uÈÔec@s`dZyddlZWnek r5ddlZnXddlZdefd„ƒYZdefd„ƒYZdefd„ƒYZd „Z d efd „ƒYZ d efd „ƒYZ defd„ƒYZ defd„ƒYZ defd„ƒYZdefd„ƒYZd„Zdefd„ƒYZdefd„ƒYZdefd„ƒYZdS(sR This provides a restricted tag language to define the sosreport index/report iÿÿÿÿNtNodecBseZd„Zd„ZRS(cCstj|jƒS(N(tjsontdumpstdata(tself((s1/usr/lib/python2.7/site-packages/sos/reporting.pyt__str__scCstS(N(tFalse(Rtnode((s1/usr/lib/python2.7/site-packages/sos/reporting.pytcan_adds(t__name__t __module__RR(((s1/usr/lib/python2.7/site-packages/sos/reporting.pyRs tLeafcBseZdZRS(s0Marker class that can be added to a Section node(R R t__doc__(((s1/usr/lib/python2.7/site-packages/sos/reporting.pyR "stReportcBs)eZdZd„Zd„Zd„ZRS(s?The root element of a report. This is a container for sections.cCs i|_dS(N(R(R((s1/usr/lib/python2.7/site-packages/sos/reporting.pyt__init__*scCs t|tƒS(N(t isinstancetSection(RR((s1/usr/lib/python2.7/site-packages/sos/reporting.pyR-scGs:x3|D]+}|j|ƒr|j|j|jÂsR(tline_buftlentHEADERRtPLUGLISTHEADERR3t PLUGLISTITEMtformattPLUGLISTMAXITEMSt PLUGLISTSEPtPLUGLISTFOOTERt PLUGDIVIDERt PLUGINFORMATt subsectionstprocess_subsectionRtFOOTERR-tjointmapRtPY3tencode( RR8tlineR6t plugcountt section_namet_tsection_contentsttype_tformat_theadertfootertoutput((s1/usr/lib/python2.7/site-packages/sos/reporting.pytunicode s8    /  cCsv||krr|jj|ƒx+|j|ƒD]}|jj||ƒq,Wt|ƒdkrr|jj|ƒqrndS(Ni(R8RtgetR9(RtsectiontkeyRQRPRRtitem((s1/usr/lib/python2.7/site-packages/sos/reporting.pyRDÊs  (R R R R:REtLEAFtALERTtNOTER;R<R?R>R@RBRARR"R$R&R)RCR8RRTRD(((s1/usr/lib/python2.7/site-packages/sos/reporting.pyR.ƒs,   *t HTMLReportcBs§eZdZdZdZdZdZdZdZdZ dZ dZ d Z d Z d Zeed d feedd feedd feedd feedd ffZRS(s:Will generate a HTML report from a top_level Report objectsÿ Sos System Report ss(
  • %(name)s
  • s
  • %s
  • s#

    Loaded Plugins:

    s& s is
    {name}
    s+

    Plugin {name}

    s
    s

    Commands executed:

    s

    Files copied: