Changeset 17213
- Timestamp:
- 9 Dec 2022, 10:13:45 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/interfaces.py
r17212 r17213 543 543 ) 544 544 545 order = schema.Choice(546 source = OrderSource(),547 title = _(u'Type of Order'),548 required = True,549 )545 #order = schema.Choice( 546 # source = OrderSource(), 547 # title = _(u'Type of Order'), 548 # required = True, 549 # ) 550 550 551 551 dispatch_address = schema.Text( … … 593 593 # ) 594 594 595 @invariant596 def type_of_order(applicant):597 #if not applicant.collected and applicant.order != 'o':598 #raise Invalid(_("If you haven't collected transcript before, type of order must be 'Student Transcript'."))599 if applicant.order == 'o' and applicant.charge.startswith('cert_'):600 raise Invalid(_("You've selected the wrong transcript charge."))601 if applicant.order == 'c' and not applicant.charge.startswith('cert_'):602 raise Invalid(_("You've selected the wrong transcript charge."))595 #@invariant 596 #def type_of_order(applicant): 597 # if not applicant.collected and applicant.order != 'o': 598 # raise Invalid(_("If you haven't collected transcript before, type of order must be 'Student Transcript'.")) 599 # if applicant.order == 'o' and applicant.charge.startswith('cert_'): 600 # raise Invalid(_("You've selected the wrong transcript charge.")) 601 # if applicant.order == 'c' and not applicant.charge.startswith('cert_'): 602 # raise Invalid(_("You've selected the wrong transcript charge.")) 603 603 604 604
Note: See TracChangeset for help on using the changeset viewer.