<% curpage = 'individual' %> <%@ include file="template/main.psp"%> <%@ include file="template/head.psp"%> <% if not len(user_email): %>
Email Address:  
<% else: import socket, xmlrpclib args = {} args['email'] = str(user_email) cur_status = '' if form.has_key('status') and form['status']: cur_status = str(form['status']) if cur_status != 'ALL': if cur_status == 'failed' or cur_status == 'success': args['result'] = cur_status else: args['status'] = [cur_status] cur_target = '' if form.has_key('target') and form['target']: cur_target = str(form['target']) if cur_target != 'ALL': args['target'] = cur_target args['orderby'] = ['endtime desc'] try: (e, msg, jobs) = server.list_jobs(args) targets = server.targets() targets.insert(0, 'ALL') except socket.error, e: msg = str(e) e = -1 except xmlrpclib.Fault, fault: msg = "XMLRPC Fault" e = -1 except Exception, e: msg = str(e) e = -1 if e == -1: if len(config_opts['down_message']) > 0: %>

<%=config_opts['down_message']%>

<% else: %>

The server could not process the request.


Error was:  <%=msg%>

<% else: %> <% # default cutoff is 1 day cutoff_time = 86400 status_list = ['ALL', 'waiting', 'building', 'add_to_repo', 'needsign', 'failed', 'success'] %>
Filter by: Status: Target:
<% # Stick in-progress jobs at the top inprog_jobs = [] finished_jobs = [] for job in jobs: if job['result'] == 'in-progress': inprog_jobs.append(job) else: finished_jobs.append(job) jobs = inprog_jobs + finished_jobs i = 1 for job in jobs: # Don't show finished jobs older than 1 day now = time.time() if job['status'] == 'killed' or job['status'] == 'needsign': if job['endtime'] != 0 and job['endtime'] < time.time() - cutoff_time: continue top = '' if i == 1: top = '-top' col_mod = '' if int(i / 2.0) == (i / 2.0): col_mod = '-alt' source = job['source'] if '/' in source: import os source = os.path.basename(source) # endif target_distro = job['target_distro'] target_target = job['target_target'] target_repo = job['target_repo'] target_str = "%s-%s-%s" % (target_distro, target_target, target_repo) %> <% i = i + 1 # endfor # No jobs... if i == 1: %> <% # endif # endtry %>
JOB ID PACKAGE NAME SOURCE STATUS TARGET
<%=job['uid']%> <%=job['package']%> <%=source%> <%=job['status']%>/<%=job['result']%> <%=target_str%>
No jobs found.


<% # endif %> <%@ include file="template/foot.psp"%>