Changeset 992 for WAeUP_SRP/trunk
- Timestamp:
- 5 Dec 2006, 14:02:37 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r990 r992 493 493 #import pdb;pdb.set_trace() 494 494 if self.isStudent(): 495 student = self.getStudentInfo()['student']496 495 s_id = student.getId() 496 if self.reference == "jamb_reg_no": 497 err = "You are already logged in" % s_id 498 s_logger.info("Student %s logged in used Pin %s" % (s_id,pin)) 499 break 497 500 s_logger.info("Student %s used Pin %s" % (s_id,pin)) 498 501 break -
WAeUP_SRP/trunk/skins/waeup_student/check_admission.py
r979 r992 14 14 wf = context.portal_workflow 15 15 validate = REQUEST.has_key("cpsdocument_create_button") 16 17 mtool = context.portal_membership 18 is_anon = mtool.isAnonymousUser() 19 member = mtool.getAuthenticatedMember() 16 20 17 21 lt = context.portal_layouts … … 44 48 elif psm == 'valid': 45 49 s_id = ds.get('s_id') 50 if not s_id and not is_anon: 51 s_id = str(member) 52 elif not is_anon: 53 return context.check_admission_pin_form(rendered = res, 54 psm = "Please log out and try again", 55 #psm = "%s, %s" % (psm,ds), 56 firstlayout = True, 57 lastlayout = True, 58 ds = ds, 59 ) 60 46 61 ## 47 62 ## email = ds.get('app_email') … … 51 66 url = "%s/campus/students/%s/pume/admission_rejected_view" % (context.portal_url(),s_id) 52 67 return redirect(url) 53 pin = str(ds.get('app_ac_pin '))68 pin = str(ds.get('app_ac_pin_n')) 54 69 args = {} 55 70 args['__ac_name'] = s_id 56 args['__ac_password'] = pin.split('-')[2] 71 #args['__ac_password'] = pin.split('-')[2] 72 args['__ac_password'] = pin 57 73 args['pin'] = pin 58 74 ## args['email'] = email
Note: See TracChangeset for help on using the changeset viewer.