- Timestamp:
- 13 Aug 2010, 09:28:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/jambtables/interfaces.py
r5328 r5432 24 24 from waeup.sirp.interfaces import IWAeUPObject 25 25 from zc.sourcefactory.basic import BasicSourceFactory 26 from zope.interface import Interface27 26 from zope import schema 27 from zope.interface import Interface, Attribute 28 from zope.pluggableauth.interfaces import IPrincipalInfo 29 from zope.security.interfaces import IGroupClosureAwarePrincipal as IPrincipal 30 28 31 29 32 class GenderSource(BasicSourceFactory): … … 542 545 """A container for applicants. 543 546 """ 547 548 class 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 555 class 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.