def filecrawl(): entries = recurse_dir(env.cellxgene_data) rendered_html = render_entries(entries) resp = make_response( render_template( "filecrawl.html", extra_scripts=get_extra_scripts(), rendered_html=rendered_html, )) return set_no_cache(resp)
def do_filecrawl(path): filecrawl_path = os.path.join(env.cellxgene_data, path) if not os.path.isdir(filecrawl_path): raise CellxgeneException("Path is not directory: " + filecrawl_path, status.HTTP_400_BAD_REQUEST) entries = recurse_dir(filecrawl_path) rendered_html = render_entries(entries) return render_template( "filecrawl.html", extra_scripts=get_extra_scripts(), rendered_html=rendered_html, path=path, )
def filecrawl(): entries = recurse_dir(env.cellxgene_data) rendered_html = render_entries(entries) resp = make_response( render_template( "filecrawl.html", extra_scripts=get_extra_scripts(), rendered_html=rendered_html, )) resp.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" resp.headers["Pragma"] = "no-cache" resp.headers["Expires"] = "0" resp.headers['Cache-Control'] = 'public, max-age=0' return resp