Ignore:
Timestamp:
31 Mar 2011, 23:00:28 (13 years ago)
Author:
uli
Message:

Move JAMB-related authentication pieces (including ifaces) to jambtables module.

File:
1 edited

Legend:

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

    r5774 r5907  
    2424from zope import schema
    2525from waeup.sirp.interfaces import IWAeUPObject
    26 from waeup.sirp.applicants.interfaces import IApplicantBaseData
     26from waeup.sirp.applicants.interfaces import (
     27    IApplicantBaseData, IApplicantsFormChallenger,
     28    IApplicantSessionCredentials,
     29    )
    2730
    2831
     
    8689        required = True,
    8790        )
     91
     92class IJAMBApplicantsFormChallenger(IApplicantsFormChallenger):
     93    """A challenger that uses a browser form to collect applicant
     94       credentials for applicants in JAMB process.
     95
     96       JAMB-screened applicants have to provide an extra registration
     97       no. provided by JAMB.
     98    """
     99    jamb_reg_no_field = schema.TextLine(
     100        title = u'JAMB registration no.',
     101        description = u'''Field of the login page which is looked up for
     102                          the JAMB registration number.''',
     103        default = u'jamb_reg_no',
     104        )
     105
     106class IJAMBApplicantSessionCredentials(IApplicantSessionCredentials):
     107    """Interface for storing and accessing JAMB applicant credentials in a
     108       session.
     109    """
     110
     111    def __init__(access_code, jamb_reg_no):
     112        """Create credentials for JAMB screened applicants."""
     113
     114    def getJAMBRegNo():
     115        """Return the JAMB registration no."""
Note: See TracChangeset for help on using the changeset viewer.