Ignore:
Timestamp:
13 Feb 2011, 12:48:00 (14 years ago)
Author:
uli
Message:

Remove unused interface.

File:
1 edited

Legend:

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

    r5758 r5759  
    9595        required = True,
    9696        )
    97    
    98 class IApplicantContainer(IWAeUPObject):
    99     """A container for applicants.
    100     """
    101 
    102 class IApplicantPrincipalInfo(IPrincipalInfo):
    103     """Infos about principals that are applicants.
    104     """
    105     reg_no = Attribute("The JAMB registration no. of the user")
    106 
    107     access_code = Attribute("The Access Code the user purchased")
    108 
    109 class IApplicantPrincipal(IPrincipal):
    110     """A principal that is an applicant.
    111 
    112     This interface extends zope.security.interfaces.IPrincipal and
    113     requires also an `id` and other attributes defined there.
    114     """
    115     reg_no = schema.TextLine(
    116         title = u'Registration number',
    117         description = u'The JAMB registration number',
    118         required = True,
    119         readonly = True)
    120 
    121     access_code = schema.TextLine(
    122         title = u'Access Code',
    123         description = u'The access code purchased by the user.',
    124         required = True,
    125         readonly = True)
    126 
    127 class IApplicantsFormChallenger(Interface):
    128     """A challenger that uses a browser form to collect applicant
    129        credentials.
    130     """
    131     loginpagename = schema.TextLine(
    132         title = u'Loginpagename',
    133         description = u"""Name of the login form used by challenger.
    134 
    135         The form must provide an ``access_code`` input field.
    136         """)
    137 
    138     accesscode_field = schema.TextLine(
    139         title = u'Access code field',
    140         description = u'''Field of the login page which is looked up for
    141                           access_code''',
    142         default = u'access_code',
    143         )
    144 
    145 class IJAMBApplicantsFormChallenger(IApplicantsFormChallenger):
    146     """A challenger that uses a browser form to collect applicant
    147        credentials for applicants in JAMB process.
    148 
    149        JAMB-screened applicants have to provide an extra registration
    150        no. provided by JAMB.
    151     """
    152     jamb_reg_no_field = schema.TextLine(
    153         title = u'JAMB registration no.',
    154         description = u'''Field of the login page which is looked up for
    155                           the JAMB registration number.''',
    156         default = u'jamb_reg_no',
    157         )
    158 
    159 class IApplicantSessionCredentials(Interface):
    160     """Interface for storing and accessing applicant credentials in a
    161        session.
    162     """
    163 
    164     def __init__(access_code):
    165         """Create applicant session credentials."""
    166 
    167     def getAccessCode():
    168         """Return the access code."""
    169 
    170 
    171 class IJAMBApplicantSessionCredentials(IApplicantSessionCredentials):
    172     """Interface for storing and accessing JAMB applicant credentials in a
    173        session.
    174     """
    175 
    176     def __init__(access_code, jamb_reg_no):
    177         """Create credentials for JAMB screened applicants."""
    178 
    179     def getJAMBRegNo():
    180         """Return the JAMB registration no."""
Note: See TracChangeset for help on using the changeset viewer.