Mercurial > kallithea
changeset 6099:bf639e54292e
routing: use POST to 'edit_repo_remote_update' instead of PUT
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 04 Aug 2016 14:23:36 +0200 |
parents | caf71e50a070 |
children | 33d6f7a46bf4 |
files | kallithea/config/routing.py kallithea/templates/admin/repos/repo_edit_remote.html |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ -587,9 +587,9 @@ rmap.connect("edit_repo_remote", "/{repo_name:.*?}/settings/remote", controller='admin/repos', action="edit_remote", conditions=dict(method=["GET"], function=check_repo)) - rmap.connect("edit_repo_remote", "/{repo_name:.*?}/settings/remote", + rmap.connect("edit_repo_remote_update", "/{repo_name:.*?}/settings/remote", controller='admin/repos', action="edit_remote", - conditions=dict(method=["PUT"], function=check_repo)) + conditions=dict(method=["POST"], function=check_repo)) rmap.connect("edit_repo_statistics", "/{repo_name:.*?}/settings/statistics", controller='admin/repos', action="edit_statistics",
--- a/kallithea/templates/admin/repos/repo_edit_remote.html Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/templates/admin/repos/repo_edit_remote.html Thu Aug 04 14:23:36 2016 +0200 @@ -2,7 +2,7 @@ <div style="font-size: 20px; padding: 0px 0px 10px 0px"> ${_('Remote repository URL')}: <a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri_hidden}</a></li> </div> -${h.form(url('edit_repo_remote', repo_name=c.repo_name), method='put')} +${h.form(url('edit_repo_remote_update', repo_name=c.repo_name))} <div class="form"> <div class="fields"> ${h.submit('remote_pull_%s' % c.repo_info.repo_name,