Esempio n. 1
0
def repository(username, path):
    print 'repository'
    repo_name = path.split('/')[0]
    if db.check_valid_repo(username, repo_name):
        req_path = app.config['UPLOAD_FOLDER'] + '/'
        req_path += username + '/'
        req_path += path
        tree = rh.get_files(req_path)
        return render_template('./repository.html', tree=tree)
    else:
        abort(404)