Ignore:
Timestamp:
29 Aug 2012, 11:10:31 (12 years ago)
Author:
Henrik Bettermann
Message:

Save student_id before firing transition.

File:
1 edited

Legend:

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

    r9119 r9121  
    136136        site = grok.getSite()
    137137        site['students'].addStudent(student)
     138        # Save student_id
     139        self.student_id = student.student_id
     140        # Fire transitions
    138141        IWorkflowInfo(self).fireTransition('create')
    139142        IWorkflowInfo(student).fireTransition('admit')
     
    149152        # Update the catalog
    150153        notify(grok.ObjectModifiedEvent(student))
    151         # Save student_id
    152         self.student_id = student.student_id
    153154        # Save application slip
    154155        self._createApplicationPDF(student, view=view)
Note: See TracChangeset for help on using the changeset viewer.