[copr] master: Return all choices from enum by default (8cc9b06)

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


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

On branch  : master

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

commit 8cc9b0690b0117f03d1297cd5e6721662b0bb657
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Thu Jan 10 14:26:15 2013 +0100

    Return all choices from enum by default


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

 coprs_frontend/coprs/helpers.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/coprs_frontend/coprs/helpers.py b/coprs_frontend/coprs/helpers.py
index 632dc54..b6ae123 100644
--- a/coprs_frontend/coprs/helpers.py
+++ b/coprs_frontend/coprs/helpers.py
@@ -23,7 +23,7 @@ class PermissionEnum(object):
         raise KeyError('num {0} is not mapped'.format(num))
 
     @classmethod
-    def choices_list(cls, without = 2):
+    def choices_list(cls, without = -1):
         return [(n, k) for k, n in cls.vals.items() if n != without]
 
 class Paginator(object):



More information about the copr-devel mailing list