3 import web_results_display
6 sessionsDirectory = os.path.join(service.settings[
'rootDirectory'],
'sessions')
18 <table id="header" bgcolor="#D8D8D8">
20 <td colspan = "2">Test Sequence:
21 <b>"""+str(curs[2])+
"""</b>    
23 """+str(curs[0])+
"""    
30 <b>"""+str(curs[3])+
"""</b>    
32 <b>"""+str(curs[4])+
"""</b>
34 <td class="links"><a href="showLogs?runID="""+str(curs[0])+
"""&label="""+label+
"""">>> Logfile</a></td>
41 <!--<th rowspan="2" colspan = "2">Reference releases</th>-->
42 <th>Reference release</th>
43 <th>Reference architecture</th>
46 for i
in range (0, stCount):
47 Code +=
"""<th>"""+str(res2[i][2])+
"""</th>
53 <td align="left" >"""+str(rows[1])+
"""</td>
54 <td>"""+str(rows[2])+
"""</td>
56 for i
in range (0, stCount):
58 Code +=
"""<td align="center" bgcolor ="#A7C942"><b>OK</b></td>
61 Code +=
"""<td align="center" bgcolor ="#FF0000"><b>Failure</b></td>
65 Code +=
"""</table><hr>
76 if 'reset' in args.keys():
77 cherrypy.session.clear()
80 if not 'label' in cherrypy.session.keys():
81 cherrypy.session[
'label'] = row[0]
83 if 'submit' in args.keys():
84 cherrypy.session[
'submit'] = args[
'submit']
85 cherrypy.session[
'label'] = args[
'label']
86 if 'release' in args.keys()
and args[
'release'] !=
'':
87 cherrypy.session[
'release'] = args[
'release']
88 if 'release' in cherrypy.session.keys()
and args[
'release'] != cherrypy.session[
'release']:
89 cherrypy.session[
'release'] = args[
'release']
90 if 'arch' in args.keys()
and args[
'arch'] !=
'':
91 cherrypy.session[
'arch'] = args[
'arch']
92 if 'arch' in cherrypy.session.keys()
and args[
'arch'] != cherrypy.session[
'arch']:
93 cherrypy.session[
'arch'] = args[
'arch']
94 if 'count' in args.keys()
and args[
'count'].isdigit():
95 cherrypy.session[
'count'] = args[
'count']
97 print cherrypy.session
98 if 'arch' in cherrypy.session.keys()
and cherrypy.session[
'arch'] !=
'' or 'release' in cherrypy.session.keys()
and cherrypy.session[
'release'] !=
'':
100 if 'count' in cherrypy.session.keys()
and cherrypy.session[
'count'].isdigit():
101 stCount = int(cherrypy.session[
'count'])
107 <META HTTP-EQUIV="REFRESH" CONTENT="60">
109 <style type="text/css">
116 vertical-align: baseline;
117 *vertical-align: middle;
123 button::-moz-focus-inner, input::-moz-focus-inner {
130 input[type="submit"] {
132 -webkit-appearance: button;
134 input[type="search"] {
135 -webkit-appearance: textfield;
136 -webkit-box-sizing: content-box;
137 -moz-box-sizing: content-box;
138 box-sizing: content-box;
142 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
143 text-decoration:none;
147 text-decoration: none;
150 background-color: #222;
151 background-color: #222222;
152 background-repeat: repeat-x;
153 background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));
154 background-image: -moz-linear-gradient(top, #333333, #222222);
155 background-image: -ms-linear-gradient(top, #333333, #222222);
156 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #222222));
157 background-image: -webkit-linear-gradient(top, #333333, #222222);
158 background-image: -o-linear-gradient(top, #333333, #222222);
159 background-image: linear-gradient(top, #333333, #222222);
160 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);
161 -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
162 -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
163 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
167 font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
169 border-collapse:collapse;
174 border:1px solid #67645B;
175 padding:3px 7px 2px 7px;
181 border:1px solid #67645B;
182 padding:3px 7px 2px 7px;
186 border:1px solid #67645B;
191 background-color:#ECAE12;
196 font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
198 border-collapse:collapse;
207 background-color:#393333;
226 filter: alpha(opacity=100);
232 background-color: #444;
233 background-color: rgba(255, 255, 255, 0.3);
234 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
240 color: rgba(255, 255, 255, 0.75);
241 border: 1px solid #111;
242 -webkit-border-radius: 4px;
243 -moz-border-radius: 4px;
245 -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
246 -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
247 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
248 -webkit-transition: none;
249 -moz-transition: none;
252 .topbar input:-moz-placeholder {
255 .topbar input::-webkit-input-placeholder {
258 .topbar input:hover {
259 background-color: #bfbfbf;
260 background-color: rgba(255, 255, 255, 0.5);
263 .topbar input:focus, .topbar input.focused {
265 background-color: #fff;
267 text-shadow: 0 1px 0 #fff;
270 -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
271 -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
272 box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
274 .topbar-inner, .topbar .fill {
275 background-color: #222;
276 background-color: #222222;
277 background-repeat: repeat-x;
278 background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));
279 background-image: -moz-linear-gradient(top, #333333, #222222);
280 background-image: -ms-linear-gradient(top, #333333, #222222);
281 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #222222));
282 background-image: -webkit-linear-gradient(top, #333333, #222222);
283 background-image: -o-linear-gradient(top, #333333, #222222);
284 background-image: linear-gradient(top, #333333, #222222);
285 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);
286 -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
287 -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
288 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
296 <form method="post" action="index" >
299 <div class="container">
300 <select name = "label">"""
303 if str(row[0]) == cherrypy.session[
'label']:
304 htmlCode +=
"""<option value = """+str(row[0])+
""" selected = "selected">"""+str(row[0])+
"""</option>
307 htmlCode +=
"""<option value = """+str(row[0])+
""">"""+str(row[0])+
"""</option>
309 htmlCode+=
"""</select>
311 if 'release' in cherrypy.session.keys():
312 htmlCode +=
"""Candidate Release:<input type="text" name="release" size="30" maxlength="50" value=\""""+str(cherrypy.session[
'release'])+
""""\"/>
315 htmlCode +=
"""Candidate Release:<input type="text" name="release" size="30" maxlength="50"/>
317 if 'arch' in cherrypy.session.keys():
318 htmlCode +=
"""Candidate Architecture:<input type="text" name="arch" size="15" maxlength="30" value=\""""+cherrypy.session[
'arch']+
""""\"/>
321 htmlCode +=
"""Candidate Architecture:<input type="text" name="arch" size="15" maxlength="30" />
323 if 'count' in cherrypy.session.keys():
324 htmlCode +=
"""Number of results:<input type="text" name="count" size="1" maxlength="4" value=\""""+cherrypy.session[
'count']+
""""\"/>
327 htmlCode +=
"""Number of results:<input type="text" name="count" size="4" maxlength="4" />
329 htmlCode +=
"""<div class = "buts"><input type="submit" name="submit" value="Refresh"/>
330 <input type="submit" name="reset" value="Reset"/>
331 </div></div></div></div>
335 if(selectRel ==
True):
336 if 'arch' in cherrypy.session.keys()
and 'release' in cherrypy.session.keys():
338 elif 'release' in cherrypy.session.keys():
340 elif 'arch' in cherrypy.session.keys():
346 htmlCode += self.
ShowTable( data, cherrypy.session[
'label'])
349 htmlCode +=
"""<h3> No entries found </h3>"""
354 htmlCode += self.
ShowTable(data, cherrypy.session[
'label'])
360 runID = int(args[
'runID'])
361 label = args[
'label']
363 logInfo =
"<html><head></head><body><pre>\n"
365 logInfo +=
'\n</pre></body></html>'
368 showLogs.exposed =
True
374 if __name__ ==
'__main__':
perl if(1 lt scalar(@::datatypes))