Changeset 2350 for WAeUP_SRP/base
- Timestamp:
- 11 Oct 2007, 16:24:46 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r2346 r2350 1338 1338 """Prepare datastructure from datamodel.""" 1339 1339 datamodel = datastructure.getDataModel() 1340 #import pdb;pdb.set_trace() 1340 1341 v = datamodel[self.fields[0]] 1341 1342 widget_id = self.getWidgetId() … … 1360 1361 datastructure[widget_id+'_b'] = b 1361 1362 datastructure[widget_id+'_n'] = n 1362 screening_type = datamodel.get('screening_type',None) 1363 if screening_type is None: 1364 screening_type = self.REQUEST.form.get('screening_type','unknown') 1363 screening_type = self.REQUEST.traverse_subpath[0] 1365 1364 datastructure["screening_type"] = screening_type 1366 1365 ###) … … 1373 1372 err = 0 1374 1373 mapping = {} 1375 #import pdb;pdb.set_trace()1376 1374 prefix= self.prefix 1377 1375 if prefix.startswith('@'): … … 1435 1433 elif datastructure.has_key('record'): 1436 1434 applicant = datastructure['record'] 1435 if applicant.screening_type != screening_type: 1436 err = "Wrong screening type" 1437 s_logger.info('%ref has screening type %s tried to login for %s' % (ref, 1438 applicant.screening_type, 1439 screening_type)) 1440 break 1437 1441 if not applicant.pin: 1438 1442 s_logger.info('%s successfully used PIN %s' % (ref,pin_str))
Note: See TracChangeset for help on using the changeset viewer.