- Timestamp:
- 12 Oct 2020, 09:36:54 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py
r16228 r16278 27 27 from zope.securitypolicy.interfaces import IPrincipalRoleManager 28 28 from zope.interface import implementedBy 29 from zope.schema.interfaces import RequiredMissing, ConstraintNotSatisfied 29 from zope.schema.interfaces import ( 30 RequiredMissing, ConstraintNotSatisfied, WrongType) 30 31 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 31 32 from waeup.kofa.image import KofaImageFile … … 206 207 site['students']._curr_stud_id -= 1 207 208 return False, 'RequiredMissing: %s' % err 209 except WrongType, err: 210 if item[0] == 'email': 211 setattr(student, item[1], str(getattr(self, item[0], None))) 212 else: 213 return False, 'WrongType: %s' % err 208 214 except: 209 215 site['students']._curr_stud_id -= 1
Note: See TracChangeset for help on using the changeset viewer.