Changeset 2597
- Timestamp:
- 8 Nov 2007, 17:21:49 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r2593 r2597 1139 1139 {'id': 'reference', 'type': 'string', 'mode': 'w', 1140 1140 'label': 'Reference Field'}, 1141 {'id': 're _use_pin', 'type': 'boolean', 'mode': 'w',1141 {'id': 'reuse_pin', 'type': 'boolean', 'mode': 'w', 1142 1142 'label': 'Reuse Application Pin'}, 1143 1143 ) 1144 1144 prefix = '' 1145 1145 reference = '' 1146 re _use_pin = True1147 1146 reuse_pin = False 1147 1148 1148 def prepare(self, datastructure, **kw): ###( 1149 1149 """Prepare datastructure from datamodel.""" … … 1215 1215 datastructure.setError(widget_id, 'PIN neither checked nor used.') 1216 1216 s_logger.info('%s/%s entered wrong data together with PIN %s' % (s_id,ref,pin_str)) 1217 if prefix == 'APP' and not self.re _use_pin:1217 if prefix == 'APP' and not self.reuse_pin: 1218 1218 res = self.applicants_catalog(reg_no = ref) 1219 1219 if res and res[0].pin == pin_str: 1220 1220 do = 0 1221 err = 'Application PIN cannot be reused'1222 s_logger.info('%s entered same PIN as for Application %s' % (s_id,pin_str))1223 1221 err = 'Application PINs cannot be reused!' 1222 s_logger.info('%s entered same PIN as for screening application %s' % (s_id,pin_str)) 1223 1224 1224 while do: 1225 1225 ok = pins.searchAndSetRecord(pin,ref,prefix)
Note: See TracChangeset for help on using the changeset viewer.