Changeset 16771
- Timestamp:
- 2 Feb 2022, 10:14:37 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py
r16744 r16771 22 22 #from grok import getSite 23 23 from zope import schema 24 #from zope.interface import invariant, Invalid24 from zope.interface import invariant, Invalid 25 25 from zope.component import getUtility 26 26 from zope.catalog.interfaces import ICatalog … … 395 395 source = OrderSource(), 396 396 title = _(u'Type of Order'), 397 required = False,397 required = True, 398 398 ) 399 399 … … 434 434 show_year = True, 435 435 ) 436 437 @invariant 438 def type_of_order(applicant): 439 if applicant.collected and applicant.order != 'o': 440 raise Invalid(_("If you have collected transcript before, type of order must be 'original'.")) 436 441 437 442
Note: See TracChangeset for help on using the changeset viewer.