changeset 6092:5e0e297435a1

routing: use POST to 'update_repos_group' instead of PUT
author Mads Kiilerich <madski@unity3d.com>
date Thu, 04 Aug 2016 14:23:36 +0200
parents e8136195daf0
children 062aa22363a1
files kallithea/config/routing.py kallithea/templates/admin/repo_groups/repo_group_edit_settings.html
diffstat 2 files changed, 2 insertions(+), 2 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
@@ -135,7 +135,7 @@
         m.connect("new_repos_group", "/repo_groups/new",
                   action="new", conditions=dict(method=["GET"]))
         m.connect("update_repos_group", "/repo_groups/{group_name:.*?}",
-                  action="update", conditions=dict(method=["PUT"],
+                  action="update", conditions=dict(method=["POST"],
                                                    function=check_group))
 
         m.connect("repos_group", "/repo_groups/{group_name:.*?}",
--- a/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html	Thu Aug 04 14:23:36 2016 +0200
+++ b/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html	Thu Aug 04 14:23:36 2016 +0200
@@ -1,5 +1,5 @@
 ## -*- coding: utf-8 -*-
-${h.form(url('repos_group',group_name=c.repo_group.group_name),method='put')}
+${h.form(url('update_repos_group',group_name=c.repo_group.group_name))}
 <div class="form">
     <!-- fields -->
     <div class="fields">