Ignore:
Timestamp:
15 Aug 2010, 14:33:07 (14 years ago)
Author:
uli
Message:

Add interfaces for the two different kinds of applicants we expect to
support: JAMB-screened ones have to provide the JAMB registration
no. and an access code while others only have to provide the latter.

File:
1 edited

Legend:

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

    r5432 r5436  
    570570        required = True,
    571571        readonly = True)
     572
     573class ApplicantsFormChallenger(Interface):
     574    """A challenger that uses a browser form to collect applicant
     575       credentials.
     576    """
     577    loginpagename = schema.TextLine(
     578        title = u'Loginpagename',
     579        description = u"""Name of the login form used by challenger.
     580
     581        The form must provide an ``access_code`` input field.
     582        """),
     583
     584    accesscode_field = TextLine(
     585        title = u'Access code field',
     586        description = u'''Field of the login page which is looked up for
     587                          access_code''',
     588        default = u'access_code',
     589        )
     590
     591class JAMBApplicantsFormChallenger(ApplicantsFormChallenger):
     592    """A challenger that uses a browser form to collect applicant
     593       credentials for applicants in JAMB process.
     594
     595       JAMB-screened applicants have to provide an extra registration
     596       no. provided by JAMB.
     597    """
     598    jamb_reg_no_field = TextLine(
     599        title = u'JAMB registration no.',
     600        description = u'''Field of the login page which is looked up for
     601                          the JAMB registration number.''',
     602        default = u'jamb_reg_no',
     603        )
Note: See TracChangeset for help on using the changeset viewer.