Changeset 2991


Ignore:
Timestamp:
8 Jan 2008, 10:09:06 (17 years ago)
Author:
Henrik Bettermann
Message:

also birth certificate is not required

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/clearance_edit.py

    r2990 r2991  
    5353                  'acc_let'
    5454                 )
    55                  
    56 if context.portal_url().find('fceokene')  > -1:
    57     required_scans = ()             
    58                  
     55no_scans_required = context.portal_url().find('fceokene') > -1                 
     56
    5957form = request.form
    6058psm = ""
     
    124122        if acknowledge and info['review_state'] == "clearance_pin_entered":
    125123            files = context.waeup_tool.picturesList()
    126             req_found = [scan for scan in required_scans if scan in files]
    127             birth_found = "age_dec" in files or "birth_certificate" in files
     124            req_found = [scan for scan in required_scans if scan in files] or no_scans_required
     125            birth_found = "age_dec" in files or "birth_certificate" in files or no_scans_required
    128126            if not req_found or not birth_found:
    129127                logger.info('%s requested clearance with documents missing' % (student_id))
Note: See TracChangeset for help on using the changeset viewer.