comparison rhodecode/model/forms.py @ 1963:9bbde54232dc beta

white space cleanup
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 28 Jan 2012 07:14:34 +0200
parents 4ae17f819ee8
children a76e9bacbedc
comparison
equal deleted inserted replaced
1961:f48bce87475b 1963:9bbde54232dc
82 82
83 if re.match(r'^[a-zA-Z0-9]{1}[a-zA-Z0-9\-\_\.]+$', value) is None: 83 if re.match(r'^[a-zA-Z0-9]{1}[a-zA-Z0-9\-\_\.]+$', value) is None:
84 raise formencode.Invalid( 84 raise formencode.Invalid(
85 _('Username may only contain alphanumeric characters ' 85 _('Username may only contain alphanumeric characters '
86 'underscores, periods or dashes and must begin with ' 86 'underscores, periods or dashes and must begin with '
87 'alphanumeric character'), 87 'alphanumeric character'),
88 value, 88 value,
89 state 89 state
90 ) 90 )
91 91
92 return _ValidUsername 92 return _ValidUsername
93 93
114 114
115 if re.match(r'^[a-zA-Z0-9]{1}[a-zA-Z0-9\-\_\.]+$', value) is None: 115 if re.match(r'^[a-zA-Z0-9]{1}[a-zA-Z0-9\-\_\.]+$', value) is None:
116 raise formencode.Invalid( 116 raise formencode.Invalid(
117 _('RepoGroup name may only contain alphanumeric characters ' 117 _('RepoGroup name may only contain alphanumeric characters '
118 'underscores, periods or dashes and must begin with ' 118 'underscores, periods or dashes and must begin with '
119 'alphanumeric character'), 119 'alphanumeric character'),
120 value, 120 value,
121 state 121 state
122 ) 122 )
123 123
124 return _ValidUsersGroup 124 return _ValidUsersGroup
125 125