Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit d116daa86b5d12f56e1235921c59c6825a3d14c0 Author: Bohuslav Kabrda bkabrda@redhat.com Date: Wed Feb 20 13:50:40 2013 +0100
Use values from enum, not strings
coprs_frontend/coprs/logic/coprs_logic.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/logic/coprs_logic.py b/coprs_frontend/coprs/logic/coprs_logic.py index 4b4e48c..42fa24f 100644 --- a/coprs_frontend/coprs/logic/coprs_logic.py +++ b/coprs_frontend/coprs/logic/coprs_logic.py @@ -98,7 +98,7 @@ class CoprsLogic(object): # if we fire a models.Copr.query, it will use the modified copr in session # -> workaround this by just getting the name old_copr_name = db.session.query(models.Copr.name).filter(models.Copr.id==copr.id).first()[0] - action = models.Action(action_type='rename', + action = models.Action(action_type=helpers.ActionTypeEnum('rename'), object_type='copr', object_id=copr.id, old_value='{0}/{1}'.format(copr.owner.name, old_copr_name),
copr-devel@lists.fedorahosted.org