Ignore:
Timestamp:
31 Jul 2019, 10:49:59 (5 years ago)
Author:
Henrik Bettermann
Message:

Implement Verification of Result/Transcript? and Certificate application form.

File:
1 edited

Legend:

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

    r15462 r15530  
    6060    )
    6161
     62document_types_vocab = SimpleKofaVocabulary(
     63    (_('Certificate'), 'certificate'),
     64    (_('Result'), 'result'),
     65    (_('Transcript'), 'transcript'),
     66    (_('Studentship'), 'studship'),
     67    )
     68
    6269class ICustomUGApplicant(IApplicantBaseData):
    6370    """An undergraduate applicant.
     
    793800
    794801
     802class IVerificationRequest(IKofaObject):
     803    """A applicant asking for verification.
     804    """
     805
     806    suspended = schema.Bool(
     807        title = _(u'Account suspended'),
     808        default = False,
     809        required = False,
     810        )
     811
     812    locked = schema.Bool(
     813        title = _(u'Form locked'),
     814        default = False,
     815        required = False,
     816        )
     817
     818    applicant_id = schema.TextLine(
     819        title = _(u'Applicant Id'),
     820        required = False,
     821        readonly = False,
     822        )
     823
     824    #reg_number = TextLineChoice(
     825    #    title = _(u'Kofa Registration Number'),
     826    #    readonly = False,
     827    #    required = True,
     828    #    source = contextual_reg_num_source,
     829    #    )
     830
     831    firstname = schema.TextLine(
     832        title = _(u'First Name'),
     833        required = True,
     834        )
     835
     836    middlename = schema.TextLine(
     837        title = _(u'Middle Name'),
     838        required = False,
     839        )
     840
     841    lastname = schema.TextLine(
     842        title = _(u'Last Name (Surname)'),
     843        required = True,
     844        )
     845
     846    email = schema.ASCIILine(
     847        title = _(u'Email Address'),
     848        required = True,
     849        constraint=validate_email,
     850        )
     851
     852    matric_number = schema.TextLine(
     853        title = _(u'Verification Body Reference Number'),
     854        readonly = False,
     855        required = True,
     856        )
     857
     858    body_address = schema.Text(
     859        title = _(u'Verification Body Address'),
     860        required = True,
     861        )
     862
     863    document_type = schema.Choice(
     864        title = _(u'Document Type'),
     865        vocabulary = document_types_vocab,
     866        required = True,
     867        )
     868
     869
    795870class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant,
    796                        ITranscriptApplicant, ICertificateRequest):
     871                       ITranscriptApplicant, ICertificateRequest,
     872                       IVerificationRequest):
    797873    """An interface for all types of applicants.
    798874
Note: See TracChangeset for help on using the changeset viewer.