Index: WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py	(revision 509)
+++ WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py	(revision 511)
@@ -13,70 +13,12 @@
     if "Manager" in member.getRoles():
         return
-return
 member_id = str(member)
 student = getattr(context.students,member_id)
 application = student.application
-student.invokeFactory('StudentPersonal','personal')
-apdoc = application.getContent()
-names = apdoc.jamb_lastname.split()
-dp = {}
-if len(names) == 3:
-    dp['firstname'] = names[0].capitalize()
-    dp['middlename'] = names[1].capitalize()
-    dp['lastname'] = names[2].capitalize()
-elif len(names) == 2:
-    dp['firstname'] = names[0].capitalize()
-    dp['lastname'] = names[1].capitalize()
-else:
-    dp['lastname'] = apdoc.jamb_lastname
-    dp['sex'] = apdoc.jamb_sex == 'F'
-    dp['lga'] = "%s/%s" % (apdoc.jamb_state,apdoc.jamb_lga )
-student.personal.getContent().edit(mapping = dp)
 ##student.content_status_modify(workflow_action="enter_application_pin")
-
 da = {}
-da['app_ac_pin'] = request.get('pin')
+pin = request.get('pin')
+da['app_ac_pin'] = pin
 da['app_ac_date'] = current
-apdoc.edit(mapping = da)
-
+application.getContent().edit(mapping = da)
 return response.redirect("%s/application_form" % student.application.absolute_url())
-
-##ma = getattr(context,member_id)
-##jkw = {'application_sc_pin': sc_pin}
-##jamb = getattr(ma,'JAMB')
-##jamb.getContent().edit(mapping=jkw)
-###pdid = 'personal%s' % member_id
-##pdid = 'PERSONAL'
-##ma.invokeFactory('StudentPersonal', pdid)
-##pd = getattr(ma,pdid)
-##pkw = {}
-##jc = jamb.getContent()
-##pkw['sex'] = getattr(jc,'sex')
-##pkw['firstname'] = getattr(jc,'firstname')
-##pkw['middlename'] = getattr(jc,'middlename')
-##pkw['lastname'] = getattr(jc,'lastname')
-##pkw['aggregate'] = getattr(jc,'aggregate')
-##pkw['faculty'] = getattr(jc,'faculty')
-##pkw['course'] = getattr(jc,'course')
-##pkw['age'] = getattr(jc,'age')
-##pkw['jamb_results'] = getattr(jc,'exam_results')
-##pkw['jamb_aggregate'] = getattr(jc,'aggregate')
-##pkw['jamb_listing_date'] = getattr(jc,'listing_date')
-##pkw['state'] = getattr(jc,'state')
-##
-##pd.getContent().edit(mapping=pkw)
-##context.notifyCPSDocumentCreation(ob=pd)
-##
-##pdid = 'DOCUMENTS'
-##ma.invokeFactory('StudentDocuments', pdid)
-##pd = getattr(ma,pdid)
-##context.notifyCPSDocumentCreation(ob=pd)
-##
-##pdid = 'ELIGIBILITY'
-##ma.invokeFactory('StudentEligibility', pdid)
-##pd = getattr(ma,pdid)
-##pd.getContent().edit(mapping=pkw)
-##context.notifyCPSDocumentCreation(ob=pd)
-##
-###return ma.personal_addon(REQUEST=context.REQUEST)
-
Index: WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py	(revision 509)
+++ WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py	(revision 511)
@@ -45,6 +45,7 @@
 elif psm == 'valid':
     s_id = ds.get('s_id')
+    pin = str(ds.get('app_ac_pin'))
     return context.REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=%s&pin=%s"
-          % (context.absolute_url(),s_id,'uNsEt',ds.get('app_ac_pin')))
+          % (context.absolute_url(),s_id,pin.split('-')[2],pin))
     
 ##    jamb_id = ds.get('jamb_reg_no')
Index: WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt	(revision 509)
+++ WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt	(revision 511)
@@ -13,4 +13,11 @@
 <table class="registration">
   
+  <span tal:condition="python:1">
+    <tr>
+      <td class="active"><a href="apply" 
+                            tal:attributes="href string:${context/absolute_url}/students/apply_admission">
+        Apply for PUME</a></td>
+    </tr>
+  </span>
   <span tal:condition="python:path('info/review_state')=='application_pin_entered'">
   <tr><td class="active">Admission started</td></tr>
