- Timestamp:
- 6 Dec 2006, 07:36:54 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r990 r997 163 163 if record.student.upper() != student_id.upper(): 164 164 return 0 165 if record.student == student_id:165 if record.student.upper() == student_id.upper(): 166 166 return 2 167 return -3 167 168 168 169 InitializeClass(PinTable) -
WAeUP_SRP/trunk/Widgets.py
r996 r997 487 487 err = 'Invalid PIN' 488 488 break 489 elif ok == -3: 490 err = 'Unknown error, please report!' 491 break 489 492 if ok == 0: 490 493 err = 'PIN already used.' … … 494 497 if self.isStudent(): 495 498 if self.reference == "jamb_reg_no": 496 err = "You are already logged in "499 err = "You are already logged in." 497 500 s_logger.info("Student %s logged in used Pin %s" % (ref,pin)) 498 501 break -
WAeUP_SRP/trunk/skins/waeup_student/check_admission.py
r993 r997 48 48 elif psm == 'valid': 49 49 s_id = ds.get('s_id') 50 if is_anon and not s_id: 51 return context.check_admission_pin_form(rendered = res, 52 psm = "You are not allowed to call this form in this context. Please try to log in.", 53 #psm = "%s, %s" % (psm,ds), 54 firstlayout = True, 55 lastlayout = True, 56 ds = ds, 57 ) 58 elif not is_anon: 59 return context.check_admission_pin_form(rendered = res, 60 psm = "You are already logged in!", 61 #psm = "%s, %s" % (psm,ds), 62 firstlayout = True, 63 lastlayout = True, 64 ds = ds, 65 ) 50 66 ## 51 67 ## email = ds.get('app_email') … … 64 80 url = "%s/logged_in?%s" % (context.absolute_url(),urlencode(args)) 65 81 return redirect(url) 82
Note: See TracChangeset for help on using the changeset viewer.