From 56e3457f4776ee5332080c5e890ed5b352cfadeb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 Feb 2019 13:51:24 -0800 Subject: auth required for creation; correct edit stub note --- python/fatcat_web/routes.py | 4 ++++ python/fatcat_web/templates/entity_edit.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 7d9b708f..f9faf328 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -48,10 +48,12 @@ def container_edit_view(ident): # #return render_template('container_edit.html') @app.route('/container/create', methods=['GET']) +@login_required def container_create_view(): return render_template('container_create.html') @app.route('/container/create', methods=['POST']) +@login_required def container_create(): raise NotImplementedError params = dict() @@ -201,10 +203,12 @@ def release_lookup(): return redirect('/release/{}'.format(resp.ident)) @app.route('/release/create', methods=['GET']) +@login_required def release_create_view(): return render_template('release_create.html') @app.route('/release/create', methods=['POST']) +@login_required def release_create(): raise NotImplementedError params = dict() diff --git a/python/fatcat_web/templates/entity_edit.html b/python/fatcat_web/templates/entity_edit.html index 5da98d89..97f7bf46 100644 --- a/python/fatcat_web/templates/entity_edit.html +++ b/python/fatcat_web/templates/entity_edit.html @@ -3,6 +3,6 @@

Not Implemented

-Entity editing isn't implemented yet, only creation. Sorry! +

Entity editing via the web interface isn't implemented yet. Sorry! {% endblock %} -- cgit v1.2.3