def render_content(repo_report_file, branches_report_file):
    formatter = abdweb_htmlformatter.HtmlFormatter()
    repo_report = _read_json_file(repo_report_file)
    branch_report = _read_json_file(branches_report_file)
    abdweb_repocontent.render(formatter, repo_report, branch_report)
    content = formatter.get_content()

    formatter = abdweb_htmlformatter.HtmlFormatter()
    abdweb_page.render(formatter, content)
    return formatter.get_content()
def process(args):
    formatter = abdweb_htmlformatter.HtmlFormatter()
    repo_report = _read_json_file(args.repo_report_file)
    branch_report = _read_json_file(args.branches_report_file)
    abdweb_repocontent.render(formatter, repo_report, branch_report)
    content = formatter.get_content()

    formatter = abdweb_htmlformatter.HtmlFormatter()
    abdweb_page.render(formatter, content)
    print formatter.get_content()
def _write_status_page(filename, repo_report, branch_report):

    filename += '.html'

    formatter = abdweb_htmlformatter.HtmlFormatter()
    abdweb_repocontent.render(formatter, repo_report, branch_report)
    content = formatter.get_content()

    formatter = abdweb_htmlformatter.HtmlFormatter()
    abdweb_page.render(formatter, content)

    with open(filename, 'w') as f:
        f.write(formatter.get_content())
    print "wrote:", filename