# HG changeset patch # User Mads Kiilerich # Date 1470313416 -7200 # Node ID 33d6f7a46bf400facc40dbbb1efe0ba92d34b52a # Parent bf639e54292e1f6d4f71aefbba60961984b78869 routing: use POST to 'edit_repo_statistics_update' instead of PUT diff -r bf639e54292e -r 33d6f7a46bf4 kallithea/config/routing.py --- a/kallithea/config/routing.py Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/config/routing.py Thu Aug 04 14:23:36 2016 +0200 @@ -594,9 +594,9 @@ rmap.connect("edit_repo_statistics", "/{repo_name:.*?}/settings/statistics", controller='admin/repos', action="edit_statistics", conditions=dict(method=["GET"], function=check_repo)) - rmap.connect("edit_repo_statistics", "/{repo_name:.*?}/settings/statistics", + rmap.connect("edit_repo_statistics_update", "/{repo_name:.*?}/settings/statistics", controller='admin/repos', action="edit_statistics", - conditions=dict(method=["PUT"], function=check_repo)) + conditions=dict(method=["POST"], function=check_repo)) #still working url for backward compat. rmap.connect('raw_changeset_home_depraced', diff -r bf639e54292e -r 33d6f7a46bf4 kallithea/templates/admin/repos/repo_edit_statistics.html --- a/kallithea/templates/admin/repos/repo_edit_statistics.html Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/templates/admin/repos/repo_edit_statistics.html Thu Aug 04 14:23:36 2016 +0200 @@ -1,4 +1,4 @@ -${h.form(url('edit_repo_statistics', repo_name=c.repo_info.repo_name), method='put')} +${h.form(url('edit_repo_statistics_update', repo_name=c.repo_info.repo_name))}