Changeset 8149


Ignore:
Timestamp:
13 Apr 2012, 16:56:29 (13 years ago)
Author:
uli
Message:

Prove that the whole stuff works really.

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  
    620620    grok.require('waeup.manageApplication')
    621621    form_fields = grok.AutoFields(IApplicant)
    622     form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
    623622    form_fields['student_id'].for_display = True
    624623    form_fields['applicant_id'].for_display = True
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r8097 r8149  
    2727from zope.schema.interfaces import (
    2828    ValidationError, ISource, IContextSourceBinder)
    29 from waeup.kofa.schema import TextLineChoice
     29from waeup.kofa.schema import TextLineChoice, FormattedDate
    3030from waeup.kofa.interfaces import (
    3131    IKofaObject, year_range, validate_email, academic_sessions_vocab,
     
    338338        required = True,
    339339        )
    340     date_of_birth = schema.Date(
     340    date_of_birth = FormattedDate(
    341341        title = _(u'Date of Birth'),
    342342        required = True,
     343        date_format = u'%d/%m/%Y',
     344        show_year = True,
    343345        )
    344346    sex = schema.Choice(
Note: See TracChangeset for help on using the changeset viewer.