def displayPickPage(req): base = get_base_dir(req) repoids = get_archives_list() # display the html page t = Template(file=os.path.join(base,"templates/integrity_checks.tmpl")) t.repoids = repoids t.baseurl = '/' + os.path.basename(req.filename) req.content_type = 'text/html' req.send_http_header() req.write(str(t)) return apache.OK
def displayAsHtml(req, repo_id, errors, warnings): base = get_base_dir(req) repoids = get_archives_list() t = Template(file=os.path.join(base,"templates/integrity_checks.tmpl")) t.repoid = repo_id t.errors = errors t.warnings = warnings t.repoids = repoids t.baseurl = '/' + os.path.basename(req.filename) req.content_type = 'text/html' req.send_http_header() req.write(str(t)) return apache.OK