Changeset 6706
- Timestamp:
- 10 Sep 2011, 00:23:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/uli-studentpw/src/waeup/sirp/students/interfaces.py
r6705 r6706 1 1 ## 2 2 ## interfaces.py 3 from zope.interface import Interface, Attribute 3 from zope.interface import Interface, Attribute, invariant 4 from zope.interface.exceptions import Invalid 4 5 from zope import schema 5 6 from waeup.sirp.interfaces import IWAeUPObject … … 74 75 required = False, 75 76 ) 77 78 @invariant 79 def passwords_match(obj): 80 if obj.password == obj.password_repeat: 81 return 82 raise Invalid('passwords do not match') 76 83 77 84 class IStudentBase(IWAeUPObject):
Note: See TracChangeset for help on using the changeset viewer.