Ignore:
Timestamp:
12 Oct 2020, 09:36:54 (4 years ago)
Author:
Henrik Bettermann
Message:

Emergency fix because we have changed the email field type in IOU. A better solution has to be found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py

    r16228 r16278  
    2727from zope.securitypolicy.interfaces import IPrincipalRoleManager
    2828from zope.interface import implementedBy
    29 from zope.schema.interfaces import RequiredMissing, ConstraintNotSatisfied
     29from zope.schema.interfaces import (
     30    RequiredMissing, ConstraintNotSatisfied, WrongType)
    3031from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    3132from waeup.kofa.image import KofaImageFile
     
    206207            site['students']._curr_stud_id -= 1
    207208            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
    208214        except:
    209215            site['students']._curr_stud_id -= 1
Note: See TracChangeset for help on using the changeset viewer.