Changeset 14011 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 3 Jul 2016, 14:09:30 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r13976 r14011 34 34 from waeup.kofa.payments.interfaces import IOnlinePayment 35 35 from waeup.kofa.schema import PhoneNumber 36 from waeup.kofa.schoolgrades import ResultEntryField 37 from waeup.kofa.refereeentries import RefereeEntryField 36 38 from waeup.kofa.students.vocabularies import GenderSource, RegNumberSource 37 39 from waeup.kofa.university.vocabularies import ( … … 411 413 ) 412 414 413 #school_grades = schema.List(414 # title = _(u'School Grades'),415 # value_type = ResultEntryField(),416 # required = False,417 # default = [],418 # )419 420 415 notice = schema.Text( 421 416 title = _(u'Notice'), … … 444 439 ) 445 440 446 class IApplicant(IApplicantBaseData): 441 class IApplicantTestData(IKofaObject): 442 """This interface is for demonstration and test purposes only. 443 It can be omitted in customized versions of Kofa. 444 """ 445 446 school_grades = schema.List( 447 title = _(u'School Grades'), 448 value_type = ResultEntryField(), 449 required = False, 450 defaultFactory=list, 451 ) 452 453 referees = schema.List( 454 title = _(u'Referees'), 455 value_type = RefereeEntryField(), 456 required = False, 457 defaultFactory=list, 458 ) 459 460 IApplicantTestData['school_grades'].order = IApplicantBaseData['course2'].order 461 462 class IApplicant(IApplicantBaseData, IApplicantTestData): 447 463 """This is basically the applicant base data. Here we repeat the 448 464 fields from base data if we have to set the `required` attribute
Note: See TracChangeset for help on using the changeset viewer.