示例#1
0
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
示例#2
0
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