Ignore:
Timestamp:
15 Dec 2011, 12:04:13 (13 years ago)
Author:
Henrik Bettermann
Message:

The StudentApplication? class is deprecated. We want to store the application_slip pdf file file instead.

Prepare everything in the students package for downloading such a pdf file.

File:
1 edited

Legend:

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

    r7347 r7351  
    115115        student['studycourse'].certificate = self.course_admitted
    116116        # Create StudentApplication object ...
    117         application = createObject(u'waeup.StudentApplication')
     117        #application = createObject(u'waeup.StudentApplication')
    118118        # ... 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
     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
    126126        return True, 'Student %s created' % student.student_id
    127127
Note: See TracChangeset for help on using the changeset viewer.