コード例 #1
0
ファイル: server.py プロジェクト: samueltwum1/birdseye
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()))
コード例 #2
0
 def check(paths, result):
     self.assertEqual(result,
                      [short_path(path, paths) for path in paths])
コード例 #3
0
ファイル: server.py プロジェクト: samueltwum1/birdseye
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)
コード例 #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))