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