Changeset 2593
- Timestamp:
- 8 Nov 2007, 14:50:21 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r2557 r2593 1139 1139 {'id': 'reference', 'type': 'string', 'mode': 'w', 1140 1140 'label': 'Reference Field'}, 1141 {'id': 're_use_pin', 'type': 'boolean', 'mode': 'w', 1142 'label': 'Reuse Application Pin'}, 1141 1143 ) 1142 1144 prefix = '' 1143 1145 reference = '' 1146 re_use_pin = True 1147 1144 1148 def prepare(self, datastructure, **kw): ###( 1145 1149 """Prepare datastructure from datamodel.""" … … 1211 1215 datastructure.setError(widget_id, 'PIN neither checked nor used.') 1212 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: 1218 res = self.applicants_catalog(reg_no = ref) 1219 if res and res[0].pin == pin_str: 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 1213 1224 while do: 1214 1225 ok = pins.searchAndSetRecord(pin,ref,prefix)
Note: See TracChangeset for help on using the changeset viewer.