Ignore:
Timestamp:
17 Jun 2007, 05:56:26 (17 years ago)
Author:
Henrik Bettermann
Message:

ticket #197

Joachim, please check what we have to to in waeup_tool.loadStudentFoto.

File:
1 edited

Legend:

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

    r1874 r1913  
    3636is_anon = mtool.isAnonymousUser()
    3737member = mtool.getAuthenticatedMember()
    38 load_passport = hasattr(context.waeup_tool,'loadStudentFoto')
     38#load_passport = hasattr(context.waeup_tool,'loadStudentFoto')
    3939
    4040if not is_anon:
     
    9090
    9191        #from Products.zdb import set_trace;set_trace()
    92         if s_review_state == 'returning' and load_passport and 'passport' not in app_doc.objectIds():
     92        if s_review_state == 'returning' and 'passport' not in app_doc.objectIds():
    9393            folder = 'pictures_returning'
    9494            res = context.students_catalog(id = str(member))
     
    9696            msg = context.waeup_tool.loadStudentFoto(student,filename,folder)
    9797            logger.info('%s, %s' % (member,msg))
    98         if s_review_state == 'admitted' and load_passport and 'passport' not in app_doc.objectIds():
     98        if s_review_state in ('admitted', 'clearance_pin_entered', 'clearance_requested') and 'passport' not in app_doc.objectIds():
    9999            folder = 'pictures_admitted_latest'
    100100            filename = app_doc.jamb_reg_no.replace('/','_')
Note: See TracChangeset for help on using the changeset viewer.