Changeset 7866


Ignore:
Timestamp:
13 Mar 2012, 07:16:03 (13 years ago)
Author:
Henrik Bettermann
Message:

Customize IApplicantEdit too.

Add tests.

Location:
main/waeup.custom/trunk/src/waeup/custom/applicants
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/applicants/applicant.py

    r7853 r7866  
    1919import grok
    2020from zope.interface import implementedBy
    21 from waeup.kofa.applicants.interfaces import IApplicantEdit
    2221from waeup.kofa.applicants.applicant import Applicant, ApplicantFactory
    23 from waeup.custom.applicants.interfaces import IPGApplicant
     22from waeup.custom.applicants.interfaces import IPGApplicant, IPGApplicantEdit
    2423
    2524class PGApplicant(Applicant):
    26     grok.implements(IPGApplicant,IApplicantEdit)
     25    grok.implements(IPGApplicant,IPGApplicantEdit)
    2726    grok.provides(IPGApplicant)
    2827
  • main/waeup.custom/trunk/src/waeup/custom/applicants/interfaces.py

    r7853 r7866  
    1919"""
    2020
    21 from waeup.kofa.applicants.interfaces import IApplicant
     21from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit
    2222
    2323class IPGApplicant(IApplicant):
     
    2525
    2626    """
     27
     28class IPGApplicantEdit(IApplicantEdit):
     29    """A postgraduate applicant interface for editing.
     30
     31    Here we can repeat the fields from base data and set the
     32    `required` and `readonly` attributes to True to further restrict
     33    the data access. Or we can allow only certain certificates to be
     34    selected by choosing the appropriate source.
     35
     36    We cannot omit fields here. This has to be done in the
     37    respective form page.
     38    """
Note: See TracChangeset for help on using the changeset viewer.