- def write_header(self, f):
- f.write("""
-<HTML>
-<HEAD>
-<STYLE>
-@-webkit-keyframes invalid {
- from { background-color: #ff6400; }
- to { background-color: #ff0000; }
- padding-right: 25px;
- padding-left: 25px;
-}
-@-moz-keyframes invalid {
- from { background-color: #ff6400; }
- to { background-color: #ff0000; }
- padding-right: 25px;
- padding-left: 25px;
-}
-@-o-keyframes invalid {
- from { background-color: #ff6400; }
- to { background-color: #ff0000; }
- padding-right: 25px;
- padding-left: 25px;
-}
-@keyframes invalid {
- from { background-color: #ff6400; }
- to { background-color: #ff0000; }
- padding-right: 25px;
- padding-left: 25px;
-}
-.invalid {
- -webkit-animation: invalid 1s infinite; /* Safari 4+ */
- -moz-animation: invalid 1s infinite; /* Fx 5+ */
- -o-animation: invalid 1s infinite; /* Opera 12+ */
- animation: invalid 1s infinite; /* IE 10+ */
-}
-</STYLE>
-<meta http-equiv="cache-control" content="max-age=0" />
-<meta http-equiv="cache-control" content="no-cache" />
-<meta http-equiv="expires" content="0" />
-<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
-<meta http-equiv="pragma" content="no-cache" />
-</HEAD>
-<BODY>
-<H1>Periodic Cronjob Health Report</H1>
-<HR>
-<CENTER>
-<TABLE BORDER=0 WIDTH=99% style="font-size:16pt">
-<TR>
-""")
-
- def write_footer(self, f):
- f.write("""
-</TR>
-</TABLE>
-</BODY>
-</HTML>""")
-
-test = periodic_health_renderer({"Test", 123})
-test.periodic_render("Test")