Changeset 8635
- Timestamp:
- 6 Jun 2012, 07:38:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py
r8487 r8635 27 27 from zope.securitypolicy.interfaces import IPrincipalRoleManager 28 28 from zope.interface import implementedBy 29 from zope.schema.interfaces import RequiredMissing 29 30 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 30 31 from waeup.kofa.app import University … … 111 112 return False, _('No course admitted provided.') 112 113 # Add student object 113 student.firstname = self.firstname 114 student.lastname = self.lastname 115 student.sex = self.sex 116 student.date_of_birth = self.date_of_birth 117 student.email = self.email 118 student.phone = self.phone 114 try: 115 student.firstname = self.firstname 116 student.lastname = self.lastname 117 student.sex = self.sex 118 student.date_of_birth = self.date_of_birth 119 student.email = self.email 120 student.phone = self.phone 121 except RequiredMissing, err: 122 return False, _('RequiredMissing: %s' % err) 119 123 site = grok.getSite() 120 124 site['students'].addStudent(student) … … 180 184 reg_number = index.Field(attribute='reg_number') 181 185 email = index.Field(attribute='email') 186 state = index.Field(attribute='state') 182 187 183 188 class ApplicantFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.