def file_view(path): return render_template('file.html', funcs=sorted(Session().query( Function.name).filter_by(file=path).distinct()), is_ipython=path == IPYTHON_FILE_PATH, full_path=path, short_path=short_path(path, db.all_file_paths()))
def check(paths, result): self.assertEqual(result, [short_path(path, paths) for path in paths])
def index(): files = db.all_file_paths() files = zip(files, [short_path(f, files) for f in files]) return render_template('index.html', files=files)
def file_view(path): return render_template('file.html', funcs=sorted(Session().query( Function.name).filter_by(file=path).distinct()), full_path=path, short_path=short_path(path))