Definition at line 8 of file webApp.py.
def webApp.Server.index |
( |
|
self, |
|
|
|
args |
|
) |
| |
Definition at line 72 of file webApp.py.
References web_results_display.GetLabels(), web_results_display.GetReleasesHeaders(), web_results_display.GetResultHeaders(), citk.if(), and webApp.Server.ShowTable().
Referenced by BeautifulSoup.PageElement._invert().
73 def index(self, **args):
77 if 'reset' in args.keys():
78 cherrypy.session.clear()
81 if not 'label' in cherrypy.session.keys():
82 cherrypy.session[
'label'] = row[0]
84 if 'submit' in args.keys():
85 cherrypy.session[
'submit'] = args[
'submit']
86 cherrypy.session[
'label'] = args[
'label']
87 if 'release' in args.keys()
and args[
'release'] !=
'':
88 cherrypy.session[
'release'] = args[
'release']
89 if 'release' in cherrypy.session.keys()
and args[
'release'] != cherrypy.session[
'release']:
90 cherrypy.session[
'release'] = args[
'release']
91 if 'arch' in args.keys()
and args[
'arch'] !=
'':
92 cherrypy.session[
'arch'] = args[
'arch']
93 if 'arch' in cherrypy.session.keys()
and args[
'arch'] != cherrypy.session[
'arch']:
94 cherrypy.session[
'arch'] = args[
'arch']
95 if 'count' in args.keys()
and args[
'count'].isdigit():
96 cherrypy.session[
'count'] = args[
'count']
98 print cherrypy.session
99 if 'arch' in cherrypy.session.keys()
and cherrypy.session[
'arch'] !=
'' or 'release' in cherrypy.session.keys()
and cherrypy.session[
'release'] !=
'':
101 if 'count' in cherrypy.session.keys()
and cherrypy.session[
'count'].isdigit():
102 stCount = int(cherrypy.session[
'count'])
108 <META HTTP-EQUIV="REFRESH" CONTENT="60">
110 <style type="text/css">
117 vertical-align: baseline;
118 *vertical-align: middle;
124 button::-moz-focus-inner, input::-moz-focus-inner {
131 input[type="submit"] {
133 -webkit-appearance: button;
135 input[type="search"] {
136 -webkit-appearance: textfield;
137 -webkit-box-sizing: content-box;
138 -moz-box-sizing: content-box;
139 box-sizing: content-box;
143 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
144 text-decoration:none;
148 text-decoration: none;
151 background-color: #222;
152 background-color: #222222;
153 background-repeat: repeat-x;
154 background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));
155 background-image: -moz-linear-gradient(top, #333333, #222222);
156 background-image: -ms-linear-gradient(top, #333333, #222222);
157 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #222222));
158 background-image: -webkit-linear-gradient(top, #333333, #222222);
159 background-image: -o-linear-gradient(top, #333333, #222222);
160 background-image: linear-gradient(top, #333333, #222222);
161 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);
162 -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
163 -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
164 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
168 font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
170 border-collapse:collapse;
175 border:1px solid #67645B;
176 padding:3px 7px 2px 7px;
182 border:1px solid #67645B;
183 padding:3px 7px 2px 7px;
187 border:1px solid #67645B;
192 background-color:#ECAE12;
197 font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
199 border-collapse:collapse;
208 background-color:#393333;
227 filter: alpha(opacity=100);
233 background-color: #444;
234 background-color: rgba(255, 255, 255, 0.3);
235 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
241 color: rgba(255, 255, 255, 0.75);
242 border: 1px solid #111;
243 -webkit-border-radius: 4px;
244 -moz-border-radius: 4px;
246 -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
247 -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
248 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
249 -webkit-transition: none;
250 -moz-transition: none;
253 .topbar input:-moz-placeholder {
256 .topbar input::-webkit-input-placeholder {
259 .topbar input:hover {
260 background-color: #bfbfbf;
261 background-color: rgba(255, 255, 255, 0.5);
264 .topbar input:focus, .topbar input.focused {
266 background-color: #fff;
268 text-shadow: 0 1px 0 #fff;
271 -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
272 -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
273 box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
275 .topbar-inner, .topbar .fill {
276 background-color: #222;
277 background-color: #222222;
278 background-repeat: repeat-x;
279 background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));
280 background-image: -moz-linear-gradient(top, #333333, #222222);
281 background-image: -ms-linear-gradient(top, #333333, #222222);
282 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #222222));
283 background-image: -webkit-linear-gradient(top, #333333, #222222);
284 background-image: -o-linear-gradient(top, #333333, #222222);
285 background-image: linear-gradient(top, #333333, #222222);
286 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);
287 -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
288 -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
289 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
297 <form method="post" action="index" >
300 <div class="container">
301 <select name = "label">"""
304 if str(row[0]) == cherrypy.session[
'label']:
305 htmlCode +=
"""<option value = """+str(row[0])+
""" selected = "selected">"""+str(row[0])+
"""</option>
308 htmlCode +=
"""<option value = """+str(row[0])+
""">"""+str(row[0])+
"""</option>
310 htmlCode+=
"""</select>
312 if 'release' in cherrypy.session.keys():
313 htmlCode +=
"""Candidate Release:<input type="text" name="release" size="30" maxlength="50" value=\""""+str(cherrypy.session[
'release'])+
""""\"/>
316 htmlCode +=
"""Candidate Release:<input type="text" name="release" size="30" maxlength="50"/>
318 if 'arch' in cherrypy.session.keys():
319 htmlCode +=
"""Candidate Architecture:<input type="text" name="arch" size="15" maxlength="30" value=\""""+cherrypy.session[
'arch']+
""""\"/>
322 htmlCode +=
"""Candidate Architecture:<input type="text" name="arch" size="15" maxlength="30" />
324 if 'count' in cherrypy.session.keys():
325 htmlCode +=
"""Number of results:<input type="text" name="count" size="1" maxlength="4" value=\""""+cherrypy.session[
'count']+
""""\"/>
328 htmlCode +=
"""Number of results:<input type="text" name="count" size="4" maxlength="4" />
330 htmlCode +=
"""<div class = "buts"><input type="submit" name="submit" value="Refresh"/>
331 <input type="submit" name="reset" value="Reset"/>
332 </div></div></div></div>
336 if(selectRel ==
True):
337 if 'arch' in cherrypy.session.keys()
and 'release' in cherrypy.session.keys():
339 elif 'release' in cherrypy.session.keys():
341 elif 'arch' in cherrypy.session.keys():
347 htmlCode += self.
ShowTable( data, cherrypy.session[
'label'])
350 htmlCode +=
"""<h3> No entries found </h3>"""
355 htmlCode += self.
ShowTable(data, cherrypy.session[
'label'])
if(c.getParameter< edm::InputTag >("puppiValueMap").label().size()!=0)