Changeset 7140 for main


Ignore:
Timestamp:
19 Nov 2011, 14:31:24 (13 years ago)
Author:
uli
Message:

Remove manual field constraints and use min_length instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py

    r7133 r7140  
    7878    """
    7979
    80     def validPassword(value):
    81         return len(value) > 3
    82 
    8380    password = schema.Password(
    8481        title = u'New password',
    85         required = False,
    86         constraint = validPassword,
     82        description = u'min. length: 3',
     83        min_length = 3,
     84        required = False,
    8785        )
    8886
     
    9088        title = u'Retype new password',
    9189        required = False,
    92         constraint = validPassword,
    9390        )
    9491
Note: See TracChangeset for help on using the changeset viewer.