[copr] master: Fix commit a2b66fdd in a proper way. (364d1dd)
bkabrda at fedorahosted.org
bkabrda at fedorahosted.org
Fri Jan 11 14:01:23 UTC 2013
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 364d1dde9bd2908e58ffcd76a523a00c790e3e5f
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Fri Jan 11 14:58:27 2013 +0100
Fix commit a2b66fdd in a proper way.
>---------------------------------------------------------------
.../coprs/views/coprs_ns/coprs_builds.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py b/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
index 7addf6e..5f65321 100644
--- a/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
@@ -54,8 +54,7 @@ def copr_add_build(username, coprname):
flask.flash("Build was added")
return flask.redirect(flask.url_for('coprs_ns.copr_detail', username = username, coprname = copr.name))
else:
- # TODO: figure out a more elegant way to get the function
- return coprs_general.copr_detail(username = username, coprname = coprname, build_form = form)
+ return flask.current_app.view_functions['coprs_ns.copr_detail'](username = username, coprname = coprname, build_form = form)
@coprs_ns.route('/detail/<username>/<coprname>/cancel_build/<int:build_id>/', methods = ['POST'])
@login_required
More information about the copr-devel
mailing list