Ignore:
Timestamp:
4 Dec 2011, 08:36:14 (13 years ago)
Author:
Henrik Bettermann
Message:

Add Applicant Importer (tests will follow).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r7260 r7262  
    259259        readonly = False,
    260260        )
    261 
    262261    reg_no = schema.TextLine(
    263262        title = u'JAMB Registration Number',
     
    269268        required = False,
    270269        readonly = True,
    271         )
    272     course1 = schema.Choice(
    273         title = u'1st Choice Course of Study',
    274         source = AppCatCertificateSource(),
    275         required = True,
    276         )
    277     course2 = schema.Choice(
    278         title = u'2nd Choice Course of Study',
    279         source = AppCatCertificateSource(),
    280         required = False,
    281270        )
    282271    firstname = schema.TextLine(
     
    318307        required = False,
    319308        )
    320     #passport = ImageFile(
    321     #    title = u'Passport Photograph',
    322     #    #default = DEFAULT_PASSPORT_IMAGE_MALE,
    323     #    defaultFactory = default_passport_image,
    324     #    description = u'Maximun file size is 20 kB.',
    325     #    required = True,
    326     #    max_size = 20480,
    327     #    )
     309    course1 = schema.Choice(
     310        title = u'1st Choice Course of Study',
     311        source = CertificateSource(),
     312        required = True,
     313        )
     314    course2 = schema.Choice(
     315        title = u'2nd Choice Course of Study',
     316        source = CertificateSource(),
     317        required = False,
     318        )
    328319
    329320    #
     
    371362    Here we can repeat the fields from base data and set the
    372363    `required` and `readonly` attributes to True to further restrict
    373     the data access. We cannot omit fields. This has to be done in the
     364    the data access. Or we can allow only certain certificates to be
     365    selected by choosing the appropriate source.
     366
     367    We cannot omit fields here. This has to be done in the
    374368    respective form page.
    375369    """
     370
     371    course1 = schema.Choice(
     372        title = u'1st Choice Course of Study',
     373        source = AppCatCertificateSource(),
     374        required = True,
     375        )
     376    course2 = schema.Choice(
     377        title = u'2nd Choice Course of Study',
     378        source = AppCatCertificateSource(),
     379        required = False,
     380        )
    376381    screening_score = schema.Int(
    377382        title = u'Screening Score',
Note: See TracChangeset for help on using the changeset viewer.