Changeset 7355


Ignore:
Timestamp:
15 Dec 2011, 19:52:30 (13 years ago)
Author:
Henrik Bettermann
Message:

Add test for applicant copier. The test does also check if the passport image has been copied and renamed and if the application slip pdf file has been created in the student's file system folder.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 added
1 edited

Legend:

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

    r7351 r7355  
    114114        # Save the certificate
    115115        student['studycourse'].certificate = self.course_admitted
    116         # Create StudentApplication object ...
    117         #application = createObject(u'waeup.StudentApplication')
    118         # ... copy applicant base data
    119         #form_fields = grok.AutoFields(IApplicantBaseData)
    120         #field_names = [i.__name__ for i in form_fields]
    121         #for name in field_names:
    122         #    value = getattr(self,name,None)
    123         #    if value:
    124         #        setattr(application,name,value)
    125         #site['students'][student.student_id]['application'] = application
     116        # Copy passport image
     117
     118        # Save application slip (ExportPDFPage)
     119
    126120        return True, 'Student %s created' % student.student_id
    127121
Note: See TracChangeset for help on using the changeset viewer.