[copr] master: We will display the forms for permission only in copr detail page (2820e5d)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Fri Jan 11 10:21:09 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 2820e5d1513688eea75efe69af67cbb8f75b4800
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Thu Jan 10 10:41:21 2013 +0100

    We will display the forms for permission only in copr detail page


>---------------------------------------------------------------

 coprs_frontend/coprs/templates/coprs/edit.html     |    3 ---
 .../coprs/views/coprs_ns/coprs_general.py          |    7 +------
 2 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/coprs_frontend/coprs/templates/coprs/edit.html b/coprs_frontend/coprs/templates/coprs/edit.html
index 62cc1bd..0eff4c9 100644
--- a/coprs_frontend/coprs/templates/coprs/edit.html
+++ b/coprs_frontend/coprs/templates/coprs/edit.html
@@ -6,9 +6,6 @@
 {% block body %}
 
   <h2>{{ copr.name }}</h2>
-  <h3>Permissions</h3>
-  {{ copr_permissions_form(permissions_form, copr, permissions) }}
-  <h3>Other attributes</h3>
   {{ copr_form(form, view = 'coprs_ns.copr_update', copr = copr) }}
 
 {% endblock %}
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
index 4086fea..25d0f40 100644
--- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
@@ -117,14 +117,9 @@ def copr_edit(username, coprname):
         return page_not_found('Copr with name {0} does not exist.'.format(coprname))
     form = forms.CoprForm(obj = copr)
 
-    permissions = coprs_logic.CoprsPermissionLogic.get_for_copr(flask.g.user, copr).all()
-    permissions_form = forms.DynamicPermissionsFormFactory.create_form_cls(permissions)()
-
     return flask.render_template('coprs/edit.html',
                                  copr = copr,
-                                 form = form,
-                                 permissions = permissions,
-                                 permissions_form = permissions_form)
+                                 form = form)
 
 
 @coprs_ns.route('/detail/<username>/<coprname>/update/', methods = ['POST'])



More information about the copr-devel mailing list