- Timestamp:
- 21 Sep 2012, 11:21:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py
r8257 r9217 21 21 from zope.interface import Interface, Attribute 22 22 from waeup.kofa.interfaces import ( 23 IKofaObject, IUniversity, IUsersContainer, IDataCenter) 23 IKofaObject, IUniversity, IUsersContainer, IDataCenter, validate_email) 24 from waeup.kofa.interfaces import MessageFactory as _ 24 25 from waeup.kofa.university.interfaces import ( 25 26 IFacultiesContainer, IFaculty, IFacultyAdd, IDepartment, IDepartmentAdd, … … 196 197 If no `title` is given, nothing will be rendered. 197 198 """ 199 200 class IChangePassword(IKofaObject): 201 """Interface needed for change pasword page. 202 203 """ 204 identifier = schema.TextLine( 205 title = _(u'Unique Identifier'), 206 description = _( 207 u'User Name, Student or Applicant Id, Matriculation or ' 208 u'Registration Number'), 209 required = True, 210 readonly = False, 211 ) 212 213 email = schema.ASCIILine( 214 title = _(u'Email Address'), 215 required = True, 216 constraint=validate_email, 217 ) 218 219 class IStudentNavigationBase(IKofaObject): 220 """Objects that provide student navigation (whatever it is) should 221 implement this interface. 222 """ 223 student = Attribute('''Some student object that has a ''' 224 ''' `display_fullname` attribute.''') 225 226 class IApplicantBase(IKofaObject): 227 """Some Applicant. 228 """ 229 display_fullname = Attribute('''Fullname.''')
Note: See TracChangeset for help on using the changeset viewer.