Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 9c1f582f1abb8ba6c5853a83382e093d2418313d Author: Bohuslav Kabrda bkabrda@redhat.com Date: Fri Mar 29 08:32:38 2013 +0100
Fix import and indentation in users_logic.
coprs_frontend/coprs/logic/users_logic.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/coprs_frontend/coprs/logic/users_logic.py b/coprs_frontend/coprs/logic/users_logic.py index 3f6d048..13289b6 100644 --- a/coprs_frontend/coprs/logic/users_logic.py +++ b/coprs_frontend/coprs/logic/users_logic.py @@ -1,4 +1,4 @@ -import exceptions +from coprs import exceptions
class UsersLogic(object): @classmethod @@ -12,8 +12,8 @@ class UsersLogic(object):
@classmethod def raise_if_cant_build_in_copr(cls, user, copr, message): - """This method raises InsufficientRightsException if given user cant build in - given copr. Returns None otherwise. - """ - if not user.can_build_in(copr): - raise exceptions.InsufficientRightsException(message) + """This method raises InsufficientRightsException if given user cant build in + given copr. Returns None otherwise. + """ + if not user.can_build_in(copr): + raise exceptions.InsufficientRightsException(message)
copr-devel@lists.fedorahosted.org