Changeset 2134 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
21 Aug 2007, 06:21:08 (17 years ago)
Author:
joachim
Message:

add check for passport foto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py

    r2119 r2134  
    103103        data[field] = dm.get(field)
    104104data['reg_no'] = reg_no
     105#set_trace()
    105106if apply_pume:
    106107    if submitted:
     
    116117                                commit = False,
    117118                                )
     119    elif not dm.get('passport'):
     120        mode = "edit"
     121        psm = "Please upload Passport Photograph!"
     122        logger.info('%s tried to submit without uploading a passport foto' % (reg_no))
    118123    elif not request.has_key('confirm'):
    119124        mode = "edit"
Note: See TracChangeset for help on using the changeset viewer.