- Timestamp:
- 11 Dec 2006, 17:03:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets_neu.py
r1026 r1029 515 515 while do: 516 516 ok = pins.searchAndSetRecord(pin,ref,prefix) 517 if ok == -2: 517 if ok < -2 or > 2: 518 err = 'Unknown error, please report!' 519 s_logger.info('"%s","%s", "caused unknown error with pin", "%s"' % (s_id,ref,pin)) 520 break 521 elif ok == -2: 518 522 err = 'Service already activated but with a different PIN.' 519 523 s_logger.info('"%s","%s", "repeatedly activated service but with different pin", "%s"' % (s_id,ref,pin)) … … 522 526 err = 'Invalid PIN' 523 527 s_logger.info('"%s","%s", "entered invalid pin", "%s"' % (s_id,ref,pin)) 524 break525 elif ok == -3:526 err = 'Unknown error, please report!'527 s_logger.info('"%s","%s", "caused unknown error with pin", "%s"' % (s_id,ref,pin))528 528 break 529 529 if ok == 0: … … 542 542 else: 543 543 student = getStudentByRegNo(self,ref) 544 s_logger.info('"%s","%s","successfully used pin","%s"' % (s_id,ref,pin)) 544 s_logger.info('"%s","%s","successfully used pin","%s"' % (s_id,ref,pin)) 545 545 if student is None: 546 546 err = "Student not found." … … 560 560 s_logger.info('"%s","%s", "repeatedly activated service with pin", "%s"' % (s_id,ref,pin)) 561 561 break 562 ## if self.reference == "jamb_reg_no":563 ## res = self.students_catalog(jamb_reg_no = ref)564 ## if len(res) > 0:565 ## err = "Please login with your Student Id %s and 10-digit PIN." % s_id566 ## s_logger.info("Student %s double checked Admission Pin %s" % (s_id,pin))567 ## break568 562 try: 569 563 student.getContent().makeStudentMember(s_id,password=pin[4:])
Note: See TracChangeset for help on using the changeset viewer.