Ignore:
Timestamp:
13 Aug 2010, 09:28:13 (14 years ago)
Author:
uli
Message:

Add missing interfaces.

File:
1 edited

Legend:

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

    r5328 r5432  
    2424from waeup.sirp.interfaces import IWAeUPObject
    2525from zc.sourcefactory.basic import BasicSourceFactory
    26 from zope.interface import Interface
    2726from zope import schema
     27from zope.interface import Interface, Attribute
     28from zope.pluggableauth.interfaces import IPrincipalInfo
     29from zope.security.interfaces import IGroupClosureAwarePrincipal as IPrincipal
     30
    2831
    2932class GenderSource(BasicSourceFactory):
     
    542545    """A container for applicants.
    543546    """
     547
     548class IApplicantPrincipalInfo(IPrincipalInfo):
     549    """Infos about principals that are applicants.
     550    """
     551    reg_no = Attribute("The JAMB registration no. of the user")
     552
     553    access_code = Attribute("The Access Code the user purchased")
     554
     555class IApplicantPrincipal(IPrincipal):
     556    """A principal that is an applicant.
     557
     558    This interface extends zope.security.interfaces.IPrincipal and
     559    requires also an `id` and other attributes defined there.
     560    """
     561    reg_no = schema.TextLine(
     562        title = u'Registration number',
     563        description = u'The JAMB registration number',
     564        required = True,
     565        readonly = True)
     566
     567    access_code = schema.TextLine(
     568        title = u'Access Code',
     569        description = u'The access code purchased by the user.',
     570        required = True,
     571        readonly = True)
Note: See TracChangeset for help on using the changeset viewer.