Ignore:
Timestamp:
20 Dec 2011, 10:59:52 (13 years ago)
Author:
Henrik Bettermann
Message:

Add student after student attributes have been set. Otherwise the students_catalog won't index these attributes.

File:
1 edited

Legend:

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

    r7391 r7406  
    9595            return False, 'No course admitted provided.'
    9696        # Add student object
    97         site = grok.getSite()
    98         site['students'].addStudent(student)
    99 
    100         self.student_id = student.student_id
    101         IWorkflowInfo(self).fireTransition('create')
    102 
    103         # Copy some base data
    10497        student.firstname = self.firstname
    10598        student.lastname = self.lastname
     
    108101        student.email = self.email
    109102        student.phone = self.phone
     103        site = grok.getSite()
     104        site['students'].addStudent(student)
     105        self.student_id = student.student_id
     106        IWorkflowInfo(self).fireTransition('create')
     107
     108        # Set password
    110109
    111110        # Save the certificate
Note: See TracChangeset for help on using the changeset viewer.