~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/forms.py

  • Committer: William Grant
  • Date: 2010-02-23 09:00:25 UTC
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: grantw@unimelb.edu.au-20100223090025-0c5r577z9fa56od9
Fix validation messages to inform users that alphanumerics in names must be lowercase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        super(URLNameValidator, self).validate_python(value, state)
115
115
        if not VALID_URL_NAME.match(value):
116
116
            raise formencode.Invalid(
117
 
                'Must consist of an alphanumeric character followed by any '
118
 
                'number of alphanumerics, ., +, - or _.',
 
117
                'Must consist of a lowercase alphanumeric character followed '
 
118
                'by any number of lowercase alphanumerics, ., +, - or _.',
119
119
                value, state)