Index: WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py	(revision 960)
+++ WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py	(revision 966)
@@ -44,9 +44,5 @@
                                  )
 elif psm == 'valid':
-    url = "%s/campus/students/%s/pume/pume_anon_view" % (context.portal_url(),ds['s_id'])
-    return REQUEST.RESPONSE.redirect(url)
-
-
-return
-
-
+    return context.pume_anon_view(pume=ds['pume'])
+##    url = "%s/campus/students/%s/pume/pume_anon_view" % (context.portal_url(),ds['s_id'])
+##    return REQUEST.RESPONSE.redirect(url)
Index: WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py.org
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py.org	(revision 966)
+++ WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py.org	(revision 966)
@@ -0,0 +1,52 @@
+##parameters=REQUEST
+# $Id$
+"""
+process the Application Form
+return html renderer + psm
+"""
+import DateTime
+current = DateTime.DateTime()
+pr = context.portal_registration
+
+
+type_name = 'StudentApplication'
+ti = context.portal_types[type_name]
+REQUEST.set('type_name',type_name)
+
+validate = REQUEST.has_key("cpsdocument_create_button")
+
+lt = context.portal_layouts
+pr = context.portal_registration
+
+res,psm,ds = lt.renderLayout(layout_id= 'student_application_search',
+                      schema_id= 'student_application',
+                      context=context,
+                      mapping=validate and REQUEST,
+                      ob={},
+                      layout_mode='create',
+                      formaction = "display_pume_result",
+                      button = "Search",
+                      )
+if psm == 'invalid':
+    return context.display_pume_result_form(rendered = res,
+                                 psm = "Please correct your input!",
+                                 #psm = "%s, %s" % (psm,ds),
+                                 firstlayout = True,
+                                 lastlayout = True,
+                                 ds = ds,
+                                 )
+elif psm == '':
+    return context.display_pume_result_form(rendered = res,
+                                 psm = None,
+                                 firstlayout = True,
+                                 lastlayout = True,
+                                 ds = ds,
+                                 )
+elif psm == 'valid':
+    url = "%s/campus/students/%s/pume/pume_anon_view" % (context.portal_url(),ds['s_id'])
+    return REQUEST.RESPONSE.redirect(url)
+
+
+return
+
+
Index: WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py	(revision 960)
+++ WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py	(revision 966)
@@ -48,14 +48,17 @@
 info['app'] = student.application
 info['app_doc'] = student.application.getContent()
-info['per'] = student.personal
-info['per_doc'] = student.personal.getContent()
+info['per'] = getattr(student,'personal',None)
+info['sex'] = 'male'
+if info['per'] is not None:
+    info['per_doc'] = student.personal.getContent()
+    if info['per_doc'].sex:
+        info['sex'] = 'female'
+else:
+    if info['app_doc'].jamb_sex == "F":
+        info['sex'] = 'female'
 course = getattr(student,'study_course',None)
-#
 info['course'] = course
 if course:
     info['course_doc'] = student.study_course.getContent()
-info['sex'] = 'male'
-if info['per_doc'].sex:
-    info['sex'] = 'female'
 #
 acco = getattr(student,'accommodation_2006',None)
Index: WAeUP_SRP/trunk/skins/waeup_student/pume_anon_slip.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/pume_anon_slip.pt	(revision 960)
+++ WAeUP_SRP/trunk/skins/waeup_student/pume_anon_slip.pt	(revision 966)
@@ -1,20 +1,25 @@
-<metal:html tal:define="app_doc python: context.aq_parent.application.getContent();
-                        pume_doc python: context.getContent()">
+<metal:html tal:define="pume python:context.portal_pumeresults(jamb_reg_no=request.get('nr'))[0]">
   <metal:body use-macro="here/main_template/macros/master">
     <metal:main fill-slot="main">
-      <h3>PUME Results of <span tal:content="app_doc/jamb_firstname" />
-                            <span tal:content="app_doc/jamb_lastname" /></h3>
-
-      <br />
-      <span tal:omit-tag=""
-            tal:content="structure python: app_doc.render(proxy=app_doc,
-            layout_mode='view_info', 
-            layout_id='student_application_fe')" 
-            />
-      <span tal:condition="python:1" tal:omit-tag=""
-            tal:content="structure python: pume_doc.render(proxy=pume_doc,
-            layout_mode='view_slip', 
-            layout_id='student_pume_fe')" 
-            />
+        <h3>PUME Results of <span tal:content="pume/name" /></h3>
+                            
+       <br />                            
+       <table>
+        <tr>
+          <th>JAMB Registration Nr</th><td tal:content="pume/jamb_reg_no"></td>
+        </tr>
+        <tr>
+          <th>Name</th><td tal:content="pume/name"></td>
+        </tr>
+        <tr>
+          <th>Score</th><td tal:content="pume/score"></td>
+        </tr>
+        <tr>
+          <th>Status</th><td tal:content="pume/status"></td>
+        </tr>
+        <tr>
+          <th>Course Requested</th><td tal:content="pume/course"></td>
+        </tr>
+      </table>
     </metal:main>
   </metal:body>
Index: WAeUP_SRP/trunk/skins/waeup_student/pume_anon_slip.pt.org
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/pume_anon_slip.pt.org	(revision 966)
+++ WAeUP_SRP/trunk/skins/waeup_student/pume_anon_slip.pt.org	(revision 966)
@@ -0,0 +1,21 @@
+<metal:html tal:define="app_doc python: context.aq_parent.application.getContent();
+                        pume_doc python: context.getContent()">
+  <metal:body use-macro="here/main_template/macros/master">
+    <metal:main fill-slot="main">
+      <h3>PUME Results of <span tal:content="app_doc/jamb_firstname" />
+                            <span tal:content="app_doc/jamb_lastname" /></h3>
+
+      <br />
+      <span tal:omit-tag=""
+            tal:content="structure python: app_doc.render(proxy=app_doc,
+            layout_mode='view_info', 
+            layout_id='student_application_fe')" 
+            />
+      <span tal:condition="python:1" tal:omit-tag=""
+            tal:content="structure python: pume_doc.render(proxy=pume_doc,
+            layout_mode='view_slip', 
+            layout_id='student_pume_fe')" 
+            />
+    </metal:main>
+  </metal:body>
+</metal:html>
Index: WAeUP_SRP/trunk/skins/waeup_student/pume_anon_view.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/pume_anon_view.pt	(revision 960)
+++ WAeUP_SRP/trunk/skins/waeup_student/pume_anon_view.pt	(revision 966)
@@ -1,10 +1,7 @@
-<metal:html tal:define="app_doc python: context.aq_parent.application.getContent();
-                        pume_doc python: context.getContent()">
+<metal:html tal:define="pume options/pume">
   <metal:body use-macro="here/main_template/macros/master">
     <metal:main fill-slot="main">
-
-            
         <div style="text-align: right">
-        <a href="" target="slip" tal:attributes="href string:pume_anon_slip"
+        <a href="" target="slip" tal:attributes="href string:pume_anon_slip?nr=${pume/jamb_reg_no}"
             onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
             <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
@@ -13,20 +10,24 @@
         </div>
 
-        <h3>PUME Results of <span tal:content="app_doc/jamb_firstname" />
-                            <span tal:content="app_doc/jamb_lastname" /></h3>
+        <h3>PUME Results of <span tal:content="pume/name" /></h3>
                             
        <br />                            
-
-        <span tal:omit-tag=""
-              tal:content="structure python: app_doc.render(proxy=app_doc,
-              layout_mode='view_info', 
-              layout_id='student_application_fe')" 
-              />        
-        <span tal:omit-tag=""
-              tal:content="structure python: pume_doc.render(proxy=pume_doc,
-              layout_mode='view_slip', 
-              layout_id='student_pume_fe')" 
-              />
-
+       <table>
+        <tr>
+          <th>JAMB Registration Nr</th><td tal:content="pume/jamb_reg_no"></td>
+        </tr>
+        <tr>
+          <th>Name</th><td tal:content="pume/name"></td>
+        </tr>
+        <tr>
+          <th>Score</th><td tal:content="pume/score"></td>
+        </tr>
+        <tr>
+          <th>Status</th><td tal:content="pume/status"></td>
+        </tr>
+        <tr>
+          <th>Course Requested</th><td tal:content="pume/course"></td>
+        </tr>
+      </table>
     </metal:main>
   </metal:body>
Index: WAeUP_SRP/trunk/skins/waeup_student/pume_anon_view.pt.org
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/pume_anon_view.pt.org	(revision 966)
+++ WAeUP_SRP/trunk/skins/waeup_student/pume_anon_view.pt.org	(revision 966)
@@ -0,0 +1,33 @@
+<metal:html tal:define="app_doc python: context.aq_parent.application.getContent();
+                        pume_doc python: context.getContent()">
+  <metal:body use-macro="here/main_template/macros/master">
+    <metal:main fill-slot="main">
+
+            
+        <div style="text-align: right">
+        <a href="" target="slip" tal:attributes="href string:pume_anon_slip"
+            onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
+            <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
+            PUME Result Slip
+        </a>
+        </div>
+
+        <h3>PUME Results of <span tal:content="app_doc/jamb_firstname" />
+                            <span tal:content="app_doc/jamb_lastname" /></h3>
+                            
+       <br />                            
+
+        <span tal:omit-tag=""
+              tal:content="structure python: app_doc.render(proxy=app_doc,
+              layout_mode='view_info', 
+              layout_id='student_application_fe')" 
+              />        
+        <span tal:omit-tag=""
+              tal:content="structure python: pume_doc.render(proxy=pume_doc,
+              layout_mode='view_slip', 
+              layout_id='student_pume_fe')" 
+              />
+
+    </metal:main>
+  </metal:body>
+</metal:html>
Index: WAeUP_SRP/trunk/skins/waeup_student/search_students.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/search_students.py	(revision 960)
+++ WAeUP_SRP/trunk/skins/waeup_student/search_students.py	(revision 966)
@@ -54,5 +54,6 @@
         'search_string': ''
         }
-
+#from Products.zdb import set_trace
+#set_trace()
 rend,psm,ds = lt.renderLayout(layout_id= 'student_search',
                       schema_id= 'student_search',
@@ -70,4 +71,5 @@
                              allowed = True,
                              )
+#set_trace()
 what = ds.get('search_mode')
 state = ds.get('review_state')
Index: WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt	(revision 960)
+++ WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt	(revision 966)
@@ -58,7 +58,5 @@
                        tal:content="student/id"></a></td>    
                 <td>
-                  <span tal:replace="python: student['per_doc'].firstname" />
-                  <span tal:replace="python: student['per_doc'].middlename" />
-                  <span tal:replace="python: student['per_doc'].lastname" />
+                  <span tal:replace="student/name" />
                 </td>    
                 <td><span tal:replace="python: student['app_doc'].jamb_reg_no" /></td>    
@@ -69,8 +67,4 @@
                           onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"
                           >[change state]</a></td>
-                       
-                       
-                       
-                       
                 <td tal:condition="not: options/co_view|nothing"><span tal:replace="student/review_state" /></td>   
               </tr>
