Ignore:
Timestamp:
6 Sep 2013, 04:32:53 (11 years ago)
Author:
Henrik Bettermann
Message:

Enable import of missing sex and course1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py

    r10386 r10591  
    100100    adding them to the UG_OMIT* tuples.
    101101    """
    102 
     102    sex = schema.Choice(
     103        title = _(u'Sex'),
     104        source = GenderSource(),
     105        required = False,
     106        )
    103107    nationality = schema.Choice(
    104108        source = nats_vocab,
     
    118122        title = _(u'1st Choice Course of Study'),
    119123        source = AppCatCertificateSource(),
    120         required = True,
     124        required = False,
    121125        )
    122126    course2 = schema.Choice(
     
    207211        )
    208212
     213INigeriaUGApplicant[
     214    'sex'].order =  IApplicantBaseData['sex'].order
    209215INigeriaUGApplicant[
    210216    'locked'].order =  IApplicantBaseData['suspended'].order
     
    424430        constraint=validate_email,
    425431        )
     432    sex = schema.Choice(
     433        title = _(u'Sex'),
     434        source = GenderSource(),
     435        required = True,
     436        )
    426437    date_of_birth = FormattedDate(
    427438        title = _(u'Date of Birth'),
    428439        required = True,
    429440        show_year = True,
     441        )
     442    course1 = schema.Choice(
     443        title = _(u'1st Choice Course of Study'),
     444        source = AppCatCertificateSource(),
     445        required = True,
    430446        )
    431447
     
    433449    'date_of_birth'].order =  INigeriaUGApplicant['date_of_birth'].order
    434450INigeriaUGApplicantEdit[
     451    'sex'].order =  INigeriaUGApplicant['sex'].order
     452INigeriaUGApplicantEdit[
    435453    'email'].order =  INigeriaUGApplicant['email'].order
     454INigeriaUGApplicantEdit[
     455    'course1'].order =  INigeriaUGApplicant['course1'].order
    436456
    437457class INigeriaPGApplicantEdit(INigeriaPGApplicant):
Note: See TracChangeset for help on using the changeset viewer.