# HG changeset patch # User Daniele Nicolodi # Date 1321011413 -3600 # Node ID 234d57f3fd1da5682ea644b6ac383251d3e2e954 # Parent 891229adcf666266591e80b0a2997f7fc2f120c5 Allow for leading digits in usernames. diff -r 891229adcf66 -r 234d57f3fd1d src/ltpdarepo/user.py --- a/src/ltpdarepo/user.py Fri Nov 11 12:28:36 2011 +0100 +++ b/src/ltpdarepo/user.py Fri Nov 11 12:36:53 2011 +0100 @@ -23,7 +23,7 @@ validators.Length(max=16, message=u'Usernames cannot be ' 'longer than 16 characters'), - validators.Regexp(r'^[a-zA-Z][0-9a-zA-Z\-\._]+$', + validators.Regexp(r'^[0-9a-zA-Z\-\._]+$', message=u'Invalid identifier.')]) name = TextField("Given name") surname = TextField("Family name")