[copr] master: Similarly rename add_build to add (3c2e42d)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Thu Jan 24 12:01:30 UTC 2013


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

On branch  : master

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

commit 3c2e42d2b97caac1eb08ad1e198e6ec8025c2ba7
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Thu Jan 24 12:49:36 2013 +0100

    Similarly rename add_build to add


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

 coprs_frontend/coprs/logic/builds_logic.py         |    2 +-
 .../coprs/views/coprs_ns/coprs_general.py          |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/coprs_frontend/coprs/logic/builds_logic.py b/coprs_frontend/coprs/logic/builds_logic.py
index 1fde575..b936a0c 100644
--- a/coprs_frontend/coprs/logic/builds_logic.py
+++ b/coprs_frontend/coprs/logic/builds_logic.py
@@ -55,7 +55,7 @@ class BuildsLogic(object):
         return models.Build.query.filter(models.Build.id.in_(ids))
 
     @classmethod
-    def add_build(cls, user, pkgs, copr):
+    def add(cls, user, pkgs, copr):
         build = models.Build(
             pkgs=pkgs,
             copr=copr,
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
index de39536..fb63e98 100644
--- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
@@ -74,8 +74,8 @@ def copr_new():
         flask.flash('New copr was successfully created.')
 
         if form.initial_pkgs.data:
-            builds_logic.BuildsLogic.add_build(flask.g.user,
-                                               pkgs=form.initial_pkgs.data.replace('\n', ' '),
+            builds_logic.BuildsLogic.add(flask.g.user,
+                                         pkgs=form.initial_pkgs.data.replace('\n', ' '),
                                                copr=copr)
             db.session.commit()
             flask.flash('Initial packages were successfully submitted '



More information about the copr-devel mailing list