[copr] master: Allow dots in copr names (bccd9ad)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Fri Jan 11 12:08:57 UTC 2013


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

On branch  : master

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

commit bccd9ad6856e9a922f677adb653cca3d9503eb52
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Jan 11 13:08:41 2013 +0100

    Allow dots in copr names


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

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

diff --git a/coprs_frontend/coprs/forms.py b/coprs_frontend/coprs/forms.py
index bb8b7a8..461e7c0 100644
--- a/coprs_frontend/coprs/forms.py
+++ b/coprs_frontend/coprs/forms.py
@@ -83,7 +83,7 @@ class CoprForm(wtf.Form):
     id = wtf.HiddenField()
     name = wtf.TextField('Name',
                          validators = [wtf.Required(),
-                         wtf.Regexp(re.compile(r'^[\w-]+$'), message = 'Name must contain only letters, digits, underscores and dashes.'),
+                         wtf.Regexp(re.compile(r'^[\w.-]+$'), message = 'Name must contain only letters, digits, underscores, dashes and dots.'),
                          CoprUniqueNameValidator()])
     # choices must be list of tuples
     # => make list like [(fedora-18, fedora-18), ...]



More information about the copr-devel mailing list