Changeset 2603


Ignore:
Timestamp:
9 Nov 2007, 08:14:57 (17 years ago)
Author:
Henrik Bettermann
Message:

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2597 r2603  
    12151215                datastructure.setError(widget_id, 'PIN neither checked nor used.')
    12161216                s_logger.info('%s/%s entered wrong data together with PIN %s' % (s_id,ref,pin_str))
    1217         if prefix == 'APP' and not self.reuse_pin:
    1218             res =  self.applicants_catalog(reg_no = ref)
    1219             if res and res[0].pin == pin_str:
    1220                 do = 0
    1221                 err = 'Application PINs cannot be reused!'
    1222                 s_logger.info('%s entered same PIN as for screening application %s' % (s_id,pin_str))
     1217            elif prefix == 'APP' and not self.reuse_pin:
     1218                res =  self.applicants_catalog(reg_no = ref)
     1219                if res and res[0].pin == pin_str:
     1220                    do = 0
     1221                    err = 'Application PINs cannot be reused!'
     1222                    s_logger.info('%s entered same PIN as for screening application %s' % (s_id,pin_str))
    12231223
    12241224        while do:
Note: See TracChangeset for help on using the changeset viewer.