<% curpage = 'builders' %> <%@ include file="template/main.psp"%> <%@ include file="template/head.psp"%>


<% import socket, xmlrpclib args = {} args['status'] = ['building'] try: (e, msg, jobs) = server.list_jobs(args) (e, msg, builders) = server.list_builders() 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: for builder in builders: arch_list = "" for arch in builder['arches']: arch_list = arch_list + arch if arch != builder['arches'][len(builder['arches'])-1]: arch_list = arch_list + ", " # endfor unavail_color = '' if builder['available'] == False: unavail_color = 'color="#ff4444"' slots_text = "unavailable" else: num_building = builder['num_slots'] - builder['free_slots'] slots_text = "%s/%s" % (num_building, builder['num_slots']) # endif %> <% bjob = None for job in jobs: if not job['archjobs']: continue for aj in job['archjobs']: # Only show actually building archjobs if aj['status'] == 'downloading' or aj['status'] == 'downloaded': continue if aj['builder_addr'] == builder['address']: joblink = job_link(job['uid']) if aj['status'] != 'done': %> <% # endif # endif # endfor # endfor %>
><%=builder['address']%>  (<%=slots_text%>)
<%=arch_list%>
Job:  <%=aj['parent_uid']%> (<%=job['package']%>/<%=aj['arch']%>)    Status:  <%=aj['status']%>/<%=aj['builder_status']%>


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