Beispiel #1
0
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()))
Beispiel #2
0
 def check(paths, result):
     self.assertEqual(result,
                      [short_path(path, paths) for path in paths])
Beispiel #3
0
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)
Beispiel #4
0
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))