Changeset 8149 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 13 Apr 2012, 16:56:29 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8128 r8149 620 620 grok.require('waeup.manageApplication') 621 621 form_fields = grok.AutoFields(IApplicant) 622 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')623 622 form_fields['student_id'].for_display = True 624 623 form_fields['applicant_id'].for_display = True -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r8097 r8149 27 27 from zope.schema.interfaces import ( 28 28 ValidationError, ISource, IContextSourceBinder) 29 from waeup.kofa.schema import TextLineChoice 29 from waeup.kofa.schema import TextLineChoice, FormattedDate 30 30 from waeup.kofa.interfaces import ( 31 31 IKofaObject, year_range, validate_email, academic_sessions_vocab, … … 338 338 required = True, 339 339 ) 340 date_of_birth = schema.Date(340 date_of_birth = FormattedDate( 341 341 title = _(u'Date of Birth'), 342 342 required = True, 343 date_format = u'%d/%m/%Y', 344 show_year = True, 343 345 ) 344 346 sex = schema.Choice(
Note: See TracChangeset for help on using the changeset viewer.