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

Save student_id in application record.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

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

    r8855 r9119  
    149149        # Update the catalog
    150150        notify(grok.ObjectModifiedEvent(student))
     151        # Save student_id
     152        self.student_id = student.student_id
    151153        # Save application slip
    152154        self._createApplicationPDF(student, view=view)
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py

    r9116 r9119  
    9393        self.assertEqual(student.firstname, 'John')
    9494        self.assertEqual(student.lastname, 'Tester')
     95        # student_id set in application record?
     96        self.assertEqual(self.applicant.student_id, student.student_id)
    9597        # Check if passport image has been copied
    9698        storage = getUtility(IExtFileStore)
Note: See TracChangeset for help on using the changeset viewer.