Changeset 1813 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
23 May 2007, 19:23:45 (17 years ago)
Author:
Henrik Bettermann
Message:

reload picture of late admissions after login
Joachim, please check!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1789 r1813  
    9191        #from Products.zdb import set_trace;set_trace()
    9292        if s_review_state == 'returning' and load_passport and 'passport' not in app_doc.objectIds():
    93             msg = context.waeup_tool.loadStudentFoto(student)
     93            folder = 'returning_import'
     94            res = context.students_catalog(id = str(member))
     95            filename = res['matric_no'].upper()
     96            msg = context.waeup_tool.loadStudentFoto(student,filename,folder)
    9497            logger.info('%s, %s' % (member,msg))
    95         elif s_review_state in ("student_created","admitted") and\
     98        if s_review_state == 'admitted' and load_passport and 'passport' not in app_doc.objectIds():
     99            folder = 'pictures_admitted_latest'
     100            filename = app_doc.jamb_reg_no.replace('/','_')
     101            msg = context.waeup_tool.loadStudentFoto(student,filename,folder)
     102            logger.info('%s, %s' % (member,msg))
     103        if s_review_state in ("student_created","admitted") and\
    96104                             a_review_state == 'created' :
    97105            wftool.doActionFor(student_app,'open')
Note: See TracChangeset for help on using the changeset viewer.