3 from __future__
import print_function
6 from xml.parsers
import expat
12 def __init__(self, title="CMS SDT pages", style=None, outFile=sys.stdout) :
18 print(
"\n================================================================================\n")
48 for fmt
in self.
cols :
68 def __init__(self, title="CMS SDT pages ", style=None, outFile=sys.stdout, scriptCode='') :
87 self.outFile.write(
"Content-Type: text/html" +
'\n')
88 self.outFile.write(
'\n')
89 self.outFile.write(
"<html> " +
'\n')
90 self.outFile.write(
"</html> " +
'\n')
96 self.outFile.write(
"<hr />" +
'\n')
99 def write(self, arg="", bold=False) :
104 self.outFile.write( arg +
'\n')
109 self.outFile.write(
"<br /> <br /> " +
'\n')
114 self.outFile.write(
"<b> " + arg +
" </b>" +
'\n')
119 self.outFile.write(
"<h1> " + arg +
" </h1>" +
'\n')
124 self.outFile.write(
"<h2> " + arg +
" </h2>" +
'\n')
129 self.outFile.write(
"<h3> " + arg +
" </h3>" +
'\n')
134 self.outFile.write(
'<a name="' + ref +
'"> </a>')
137 def startTable(self, colSizes, colLabels, id=None, cls=None, tableAttr=None) :
139 tableString =
'<table ' 141 tableString += tableAttr
143 tableString +=
' id="'+id+
'" ' 145 tableString +=
' class="'+cls+
'" ' 147 self.outFile.write( tableString +
'\n')
149 self.outFile.write(
" <thead>\n <tr>" +
'\n')
150 for col
in colLabels :
151 self.outFile.write(
" <th> <b>" + col +
"</b> </th>" +
'\n')
152 self.outFile.write(
" </tr>\n</thead>" +
'\n')
153 self.outFile.write(
" <tbody>" +
'\n')
160 self.outFile.write(
' <tr class="'+cls+
'"> \n')
162 self.outFile.write(
" <tr>" +
'\n')
164 if string.strip(
str(arg)) ==
"" : arg =
" " 165 if bold: self.outFile.write(
'<td class=cellbold> ' )
166 else: self.outFile.write(
" <td> " )
167 self.outFile.write( arg )
169 self.outFile.write(
" </td>" +
'\n')
170 self.outFile.write(
" </tr> " +
'\n')
176 self.outFile.write(
" <tr>" +
'\n')
177 for arg, cellStyle
in zip(args, styles):
178 if string.strip(
str(arg)) ==
"" : arg =
" " 179 cellStyle = cellStyle.strip()
180 if cellStyle !=
'' : self.outFile.write(
'<td class='+cellStyle+
'> ' )
181 else: self.outFile.write(
" <td> " )
182 self.outFile.write( arg )
183 self.outFile.write(
" </td>" +
'\n')
184 self.outFile.write(
" </tr> " +
'\n')
190 self.outFile.write(
"</tbody>" +
'\n')
191 self.outFile.write(
"</table>" +
'\n')
198 self.outFile.write(
"<html> " +
'\n')
200 self.outFile.write(
"<head> " +
'\n')
203 self.outFile.write( self.
style +
'\n')
205 self.outFile.write(
"<TITLE>" + self.
title +
"</TITLE>" +
'\n')
208 self.outFile.write(
"</head> " +
'\n')
209 self.outFile.write(
"<body>" +
'\n')
218 self.outFile.write(
"</body>" +
'\n')
219 self.outFile.write(
"</html> " +
'\n')
S & print(S &os, JobReport::InputFile const &f)
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)