Ignore:
Timestamp:
15 Aug 2010, 14:44:26 (14 years ago)
Author:
uli
Message:

Add interfaces for the credential objects we'd like to use with
applicants.

File:
1 edited

Legend:

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

    r5437 r5438  
    602602        default = u'jamb_reg_no',
    603603        )
     604
     605class IApplicantSessionCredentials(Interface):
     606    """Interface for storing and accessing applicant credentials in a
     607       session.
     608    """
     609
     610    def __init__(access_code):
     611        pass
     612
     613    def getAccessCode():
     614        """Return the access code."""
     615
     616
     617class IJAMBApplicantSessionCredentials(IApplicantSessionCredentials):
     618    """Interface for storing and accessing JAMB applicant credentials in a
     619       session.
     620    """
     621
     622    def __init__(access_code, jamb_reg_no):
     623        pass
     624
     625    def getJAMBRegNo():
     626        """Return the JAMB registration no."""
Note: See TracChangeset for help on using the changeset viewer.