Ignore:
Timestamp:
18 Jun 2019, 05:47:35 (5 years ago)
Author:
Henrik Bettermann
Message:

course1 works only on manage pages. On edit pages course1 input is missing
and no Invalid exception is raised.
NoInputData?: NoInputD...course1'
Therefore, we check and compare course1 on CustomApplicantEditFormPage?.

File:
1 edited

Legend:

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

    r15455 r15459  
    875875        )
    876876
     877    # course1 works only on manage pages. On edit pages course1 input is missing
     878    # and no Invalid exception is raised.
     879    # NoInputData: NoInputD...course1'
     880    # Therefore, we check and compare course1 on CustomApplicantEditFormPage.
     881    @invariant
     882    def course_choice(applicant):
     883        if applicant.course2 == applicant.course3:
     884            raise Invalid(_("3rd choice course must differ from 2nd choice course."))
     885
    877886#ICustomUGApplicantEdit['programme_type'].order = ICustomUGApplicant[
    878887#    'programme_type'].order
Note: See TracChangeset for help on using the changeset viewer.