Ignore:
Timestamp:
3 Apr 2008, 12:54:05 (16 years ago)
Author:
joachim
Message:

catch errors in edit mode

File:
1 edited

Legend:

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

    r3411 r3412  
    175175    if object['status'] and ('submitted' in object['status'] or 'admitted' in object['status'] or 'created' in object['status']):
    176176        submitted = True
    177 
     177    # cannot happen anymore but anyway   
    178178    if not (create or slip) and (pin != object['pin'] and not context.isSectionOfficer()):
    179179        logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin))
     
    189189                                commit = False,
    190190                                )
     191    if psm == 'invalid':
     192        return context.apply_admission_form(rendered = res,
     193                                            psm = "Please correct your input!",
     194                                            mode = mode,
     195                                            ds = ds,
     196                                            info = info,
     197                                        )
    191198    # For the next application session it should be reverted to
    192199    # (see comment 09/06/07 16:40:52 in ticket #328):
Note: See TracChangeset for help on using the changeset viewer.