Changeset 1573 for WAeUP_SRP/trunk/Widgets.py
- Timestamp:
- 17 Mar 2007, 21:43:32 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r1571 r1573 370 370 name = " ".join(cvs) 371 371 if not found: 372 logger.info('%(matric_no)s mismatch %(value)s notin %(name)s' % vars())373 err = 'No Name does match.'372 logger.info('%(matric_no)s did not find %(value)s in %(name)s' % vars()) 373 err = 'No name does match.' 374 374 else: 375 375 logger.info('%(matric_no)s found %(value)s in %(name)s' % vars()) … … 401 401 if not valid or not value: 402 402 err = 'Invalid matric_no string %s.' % value 403 logger.info(' %s invalid matric_no string' % value)403 logger.info('Invalid matric_no string %s' % value) 404 404 else: 405 405 value = value.upper() … … 408 408 res = returning(matric_no = value) 409 409 if len(res) < 1: 410 logger.info(' %s matric_nonot found' % value)411 err = 'No Student with matric_no %s.' % (value)410 logger.info('matric_no %s not found' % value) 411 err = 'No student with matric_no %s.' % (value) 412 412 continue 413 413 datastructure['student'] = res[0] 414 414 res = results(matric_no = value) 415 415 if len(res) < 1: 416 err = 'No Results with matric_no %s.' % (value)416 err = 'No results with matric_no %s.' % (value) 417 417 continue 418 418 datastructure['results'] = res … … 444 444 if not valid or not value: 445 445 err = 'Invalid id string %s.' % value 446 logger.info(' %s invalid id string' % value)446 logger.info('Invalid id string %s' % value) 447 447 datastructure['student'] = None 448 448 else: … … 450 450 res = s_cat(id = value) 451 451 if not res: 452 logger.info(' %s idnot found' % value)453 err = 'No Student with StudentId %s.' % (value)452 logger.info('Student id %s not found' % value) 453 err = 'No student with id %s.' % (value) 454 454 datastructure['student'] = None 455 455 else: … … 721 721 elif len(b) > 1 and b.find('-') > -1: 722 722 do = 0 723 err = 'PIN must not contain the"-"'724 s_logger.info(' "%s","Invalid PIN-Number, contains-"' % (s_id))723 err = 'PIN must not contain "-"' 724 s_logger.info('%s entered invalid PIN containing "-"' % (s_id)) 725 725 elif n.find('-') > -1: 726 726 do = 0 727 err = 'PIN must not contain the"-"'728 s_logger.info(' "%s","Invalid PIN-Number, contains-"' % (s_id))727 err = 'PIN must not contain "-"' 728 s_logger.info('%s entered invalid PIN containing "-"' % (s_id)) 729 729 elif len(n) != 10: 730 730 do = 0 731 err = ' invalid PIN length %d' % len(n)732 s_logger.info('%s invalid PINlength %d' % (s_id,len(n)))731 err = 'Invalid PIN length %d' % len(n) 732 s_logger.info('%s entered invalid PIN with length %d' % (s_id,len(n))) 733 733 elif self.reference == "": 734 734 ref = s_id … … 762 762 if self.reference == "jamb_reg_no": 763 763 err = "You are already logged in." 764 s_logger.info('%s/%s checked admission though logged in %s' % (s_id,ref,pin_str))764 s_logger.info('%s/%s checked admission with PIN %s though logged in' % (s_id,ref,pin_str)) 765 765 break 766 766 if ok == 1:
Note: See TracChangeset for help on using the changeset viewer.