Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : bkabrda-workspace
---------------------------------------------------------------
commit 5bf70ae316b2a7c618c0a6f6ce3d47188d6e0597
Author: Bohuslav Kabrda <bkabrda(a)redhat.com>
Date: Mon Nov 26 14:37:54 2012 +0100
Add epel to CHROOTS and sort the chroots for form select field
---------------------------------------------------------------
wsgi/coprs/constants.py | 2 ++
wsgi/coprs/forms.py | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/wsgi/coprs/constants.py b/wsgi/coprs/constants.py
index a845e6a..d9968e0 100644
--- a/wsgi/coprs/constants.py
+++ b/wsgi/coprs/constants.py
@@ -6,6 +6,8 @@ CHROOTS = {'fedora-16': DEFAULT_ARCHES,
'fedora-17': DEFAULT_ARCHES,
'fedora-18': DEFAULT_ARCHES,
'fedora-rawhide': DEFAULT_ARCHES,
+ 'epel-5': DEFAULT_ARCHES,
+ 'epel-6': DEFAULT_ARCHES,
}
# PAGINATION
diff --git a/wsgi/coprs/forms.py b/wsgi/coprs/forms.py
index 8755a13..4fe86ac 100644
--- a/wsgi/coprs/forms.py
+++ b/wsgi/coprs/forms.py
@@ -79,7 +79,7 @@ class CoprForm(wtf.Form):
CoprUniqueNameValidator()])
# choices must be list of tuples
# => make list like [(fedora-18, fedora-18), ...]
- release = wtf.SelectField('Release', choices = [(x, x) for x in
constants.CHROOTS])
+ release = wtf.SelectField('Release', choices = [(x, x) for x in
sorted(constants.CHROOTS)])
arches = wtf.SelectMultipleField('Architectures',
choices = [(x, x) for x in
constants.DEFAULT_ARCHES],
validators = [wtf.Required(),
AllowedArchesValidator()])