Changeset 511 for WAeUP_SRP/trunk/skins
- Timestamp:
- 13 Sep 2006, 06:47:55 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py
r506 r511 13 13 if "Manager" in member.getRoles(): 14 14 return 15 return16 15 member_id = str(member) 17 16 student = getattr(context.students,member_id) 18 17 application = student.application 19 student.invokeFactory('StudentPersonal','personal')20 apdoc = application.getContent()21 names = apdoc.jamb_lastname.split()22 dp = {}23 if len(names) == 3:24 dp['firstname'] = names[0].capitalize()25 dp['middlename'] = names[1].capitalize()26 dp['lastname'] = names[2].capitalize()27 elif len(names) == 2:28 dp['firstname'] = names[0].capitalize()29 dp['lastname'] = names[1].capitalize()30 else:31 dp['lastname'] = apdoc.jamb_lastname32 dp['sex'] = apdoc.jamb_sex == 'F'33 dp['lga'] = "%s/%s" % (apdoc.jamb_state,apdoc.jamb_lga )34 student.personal.getContent().edit(mapping = dp)35 18 ##student.content_status_modify(workflow_action="enter_application_pin") 36 37 19 da = {} 38 da['app_ac_pin'] = request.get('pin') 20 pin = request.get('pin') 21 da['app_ac_pin'] = pin 39 22 da['app_ac_date'] = current 40 apdoc.edit(mapping = da) 41 23 application.getContent().edit(mapping = da) 42 24 return response.redirect("%s/application_form" % student.application.absolute_url()) 43 44 ##ma = getattr(context,member_id)45 ##jkw = {'application_sc_pin': sc_pin}46 ##jamb = getattr(ma,'JAMB')47 ##jamb.getContent().edit(mapping=jkw)48 ###pdid = 'personal%s' % member_id49 ##pdid = 'PERSONAL'50 ##ma.invokeFactory('StudentPersonal', pdid)51 ##pd = getattr(ma,pdid)52 ##pkw = {}53 ##jc = jamb.getContent()54 ##pkw['sex'] = getattr(jc,'sex')55 ##pkw['firstname'] = getattr(jc,'firstname')56 ##pkw['middlename'] = getattr(jc,'middlename')57 ##pkw['lastname'] = getattr(jc,'lastname')58 ##pkw['aggregate'] = getattr(jc,'aggregate')59 ##pkw['faculty'] = getattr(jc,'faculty')60 ##pkw['course'] = getattr(jc,'course')61 ##pkw['age'] = getattr(jc,'age')62 ##pkw['jamb_results'] = getattr(jc,'exam_results')63 ##pkw['jamb_aggregate'] = getattr(jc,'aggregate')64 ##pkw['jamb_listing_date'] = getattr(jc,'listing_date')65 ##pkw['state'] = getattr(jc,'state')66 ##67 ##pd.getContent().edit(mapping=pkw)68 ##context.notifyCPSDocumentCreation(ob=pd)69 ##70 ##pdid = 'DOCUMENTS'71 ##ma.invokeFactory('StudentDocuments', pdid)72 ##pd = getattr(ma,pdid)73 ##context.notifyCPSDocumentCreation(ob=pd)74 ##75 ##pdid = 'ELIGIBILITY'76 ##ma.invokeFactory('StudentEligibility', pdid)77 ##pd = getattr(ma,pdid)78 ##pd.getContent().edit(mapping=pkw)79 ##context.notifyCPSDocumentCreation(ob=pd)80 ##81 ###return ma.personal_addon(REQUEST=context.REQUEST)82 -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
r502 r511 45 45 elif psm == 'valid': 46 46 s_id = ds.get('s_id') 47 pin = str(ds.get('app_ac_pin')) 47 48 return context.REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=%s&pin=%s" 48 % (context.absolute_url(),s_id, 'uNsEt',ds.get('app_ac_pin')))49 % (context.absolute_url(),s_id,pin.split('-')[2],pin)) 49 50 50 51 ## jamb_id = ds.get('jamb_reg_no') -
WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt
r509 r511 13 13 <table class="registration"> 14 14 15 <span tal:condition="python:1"> 16 <tr> 17 <td class="active"><a href="apply" 18 tal:attributes="href string:${context/absolute_url}/students/apply_admission"> 19 Apply for PUME</a></td> 20 </tr> 21 </span> 15 22 <span tal:condition="python:path('info/review_state')=='application_pin_entered'"> 16 23 <tr><td class="active">Admission started</td></tr>
Note: See TracChangeset for help on using the changeset viewer.