Index: WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py	(revision 600)
@@ -22,10 +22,6 @@
 campus = context.portal_catalog(meta_type = "University")[-1].getObject()
 member = pm.getAuthenticatedMember()
-roles = member.getRolesInContext(context)
-isManager = "Manager" in roles or "SectionManager" in roles
-isStudent = "Student" in roles
-isStaff = "Staff" in roles
 
-if isStaff or isManager:
+if context.isManager():
     if context.portal_type == 'AcademicsFolder':
         return context.academics.academics_index_view()
@@ -43,5 +39,5 @@
         return context.academics_document_view()
     return redirect("%s/academics_contents" % context.absolute_url())
-if isStudent:
+else:
     return redirect("%s/academics_contents" % context.absolute_url())
 
Index: WAeUP_SRP/trunk/skins/waeup_academics/academics_search_view.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/academics_search_view.pt	(revision 600)
+++ WAeUP_SRP/trunk/skins/waeup_academics/academics_search_view.pt	(revision 600)
@@ -0,0 +1,104 @@
+<metal:html tal:define="rendered options/rendered;
+            portal_status_message options/psm;
+            objects options/objects;
+            is_manager options/is_manager;"
+            >
+  <metal:body use-macro="here/main_template/macros/master">
+    <metal:block fill-slot="header"
+                 tal:define="creation creation|nothing;
+                 edition edition|nothing;
+                 metadata metadata|nothing"
+                 >
+    </metal:block>
+    
+    <metal:main fill-slot="main">
+      <span tal:condition="not: is_manager">
+        <metal:block use-macro="here/error_not_found/macros/not_found" />
+      </span>
+      <span tal:condition="is_manager"
+        tal:define="items objects;
+        columns python:3;
+        items_per_page python:40;
+        max_items python:300;
+        zoom python:0;
+        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=400);
+        batches python:batches_all[0];
+        batch_info python:batches_all[1];
+        zoomed python:batches_all[2];
+        mq nocall:modules/ZTUtils/make_query;"
+        tal:omit-tag=""
+        >
+        <span tal:replace="structure rendered" />
+        <tal:block tal:condition="python: batch_info and batch_info['nb_pages'] > 1">
+          <div class="batchLayout">
+            <span i18n:translate="">
+              Objects: 
+              <strong>
+                <tal:block replace="batch_info/start"
+                           i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
+                                                                   i18n:name="batch_limit" />
+              </strong>
+              of <tal:block replace="batch_info/length"
+                            i18n:name="batch_length" />
+            </span>
+          </div>
+          <br />
+        </tal:block>
+        <table class="contentListing" width="100%">
+          <span tal:repeat="rows batches" tal:omit-tag="">
+            <tr tal:repeat="student rows"
+                tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
+              <td><a href="id" tal:attributes="href string:${student/student/absolute_url}"
+                     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" />
+              </td>    
+              <td><span tal:replace="python: student['app_doc'].jamb_reg_no" /></td>    
+              <td><span tal:replace="student/review_state" /></td>    
+            </tr>
+          </span>
+        </table>
+        <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
+          <div class="pageNavigationLayout">
+            <a tal:define="previous batch_info/previous"
+               tal:condition="python:previous is not None"
+               tal:attributes="href python:'%s?%s'%(request['URL'],
+               mq(request.form, b_start=0))"
+               >
+            (&lt;&lt;)</a>
+            <a tal:define="previous batch_info/previous"
+               tal:condition="python:previous is not None"
+               tal:attributes="href python:'%s?%s'%(request['URL'],
+               mq(request.form, b_start=previous))"
+               i18n:translate="batch_previous">Previous</a>
+            <tal:block repeat="page batch_info/pages">
+              <tal:block condition="python:page != batch_info['start'] - 1">
+                <a tal:attributes="href python:'%s?%s'%(request['URL'],
+                mq(request.form, b_start=page))"
+                tal:content="repeat/page/number">1</a>&nbsp;
+              </tal:block>
+              <tal:block condition="python:page == batch_info['start'] - 1">
+                <span tal:content="string:${repeat/page/number}" />&nbsp;
+              </tal:block>
+            </tal:block>
+            <a tal:define="next batch_info/next"
+               tal:condition="python:next is not None"
+               tal:attributes="href python:'%s?%s'%(request['URL'],
+               mq(request.form, b_start=next))"
+               i18n:translate="batch_next">Next</a>
+            <a tal:define="next batch_info/next;
+            last_page python:batch_info['pages'][-1]"
+            tal:condition="python:next is not None"
+            tal:attributes="href python:'%s?%s'%(request['URL'],
+            mq(request.form, b_start=last_page))"
+            >
+            (&gt;&gt;)</a>
+          </div>
+        </tal:block>
+      </span>
+    </metal:main>
+  </metal:body>
+</metal:html>
+  
Index: WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt	(revision 600)
@@ -39,9 +39,5 @@
 
             <td> 
-<<<<<<< .mine
             <a tal:condition="row/is_editable"
-=======
-            <a tal:condition="row/is_edit_allowed"
->>>>>>> .r597
                 href="edit" tal:attributes="href string:${row/url}/external_edit_form"
                 target="edit"
Index: WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py	(revision 600)
@@ -22,6 +22,6 @@
 member_id = str(member)
 roles = member.getRoles()
-info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
-info['is_student'] = 'Student' in roles 
+info['is_manager'] = context.isManager()
+info['is_student'] = context.isStudent()
 info['action'] = "%s" % context.campus.absolute_url()
 info['choosen_ids'] = request.get('ids',[])
Index: WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.py	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.py	(revision 600)
@@ -22,6 +22,6 @@
 member_id = str(member)
 roles = member.getRoles()
-info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
-info['is_student'] = 'Student' in roles 
+info['is_manager'] = context.isManager()
+info['is_student'] = context.isStudent()
 info['action'] = "%s/faculty_index_view" % context.absolute_url()
 info['choosen_ids'] = request.get('ids',[])
Index: WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py	(revision 600)
@@ -24,6 +24,6 @@
 dep_id = context.aq_parent.getId()
 roles = member.getRoles()
-info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
-info['is_student'] = 'Student' in roles 
+info['is_manager'] = context.isManager()
+info['is_student'] = context.isStudent()
 info['action'] = "%s" % context.absolute_url()
 info['choosen_ids'] = request.get('ids',[])
Index: WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py	(revision 600)
@@ -22,6 +22,6 @@
 member_id = str(member)
 roles = member.getRolesInContext(context)
-info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
-info['is_student'] = 'Student' in roles
+info['is_manager'] = context.isManager()
+info['is_student'] = context.isStudent()
 info['action'] = "%s" % context.absolute_url()
 info['choosen_ids'] = request.get('ids',[])
Index: WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py	(revision 600)
@@ -22,6 +22,6 @@
 member_id = str(member)
 roles = member.getRoles()
-info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
-info['is_student'] = 'Student' in roles 
+info['is_manager'] = context.isManager()
+info['is_student'] = context.isStudent() 
 info['action'] = "%s" % context.campus.absolute_url()
 info['choosen_ids'] = request.get('ids',[])
Index: WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py	(revision 598)
+++ WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py	(revision 600)
@@ -31,6 +31,6 @@
 level_id = pt[-(1+p)]
 roles = member.getRoles()
-info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
-info['is_student'] = 'Student' in roles 
+info['is_manager'] = context.isManager()
+info['is_student'] = context.isStudent()
 info['action'] = "%s" % context.absolute_url()
 info['choosen_ids'] = request.get('ids',[])
Index: WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py	(revision 600)
+++ WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py	(revision 600)
@@ -0,0 +1,96 @@
+## Script (Python) "cpsdocument_edit"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=
+##title=
+##
+# $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $
+"""
+return Info about the current Student
+"""
+request = context.REQUEST
+form = request.form
+fget = form.get
+info = {}
+wf = context.portal_workflow
+catalog = context.portal_catalog
+mtool = context.portal_membership
+member = mtool.getAuthenticatedMember()
+lt = context.portal_layouts
+pr = context.portal_registration
+path_info = request.get('PATH_INFO').split('/')
+roles = member.getRoles()
+is_manager = 'Manager' in roles or 'SectionManager' in roles
+validate = request.has_key("cpsdocument_edit_button")
+items = []
+default = {'search_mode': 'course', 
+        'review_state': 'unchecked', 
+        'search_string': ''
+        }
+        
+rend,psm,ds = lt.renderLayout(layout_id= 'academics_search',
+                      schema_id= 'academics_search',
+                      context=context,
+                      mapping=validate and request,
+                      ob=default,
+                      layout_mode='edit',
+                      formaction="searchAcademics"
+                      )
+if psm == '':
+    return context.academics_search_view(rendered = rend,
+                             psm = psm,
+                             #psm = "%s, %s" % (psm,ds),
+                             objects = items,
+                             is_manager = is_manager,
+                             )
+what = ds.get('search_mode')
+state = ds.get('review_state')
+term = ds.get('search_string')
+if state == " ----- ":
+    state = ''
+if not term and what in ('student_edit','jamb_id','name','matric_no'):
+    return context.academics_search_view(rendered = rend,
+                             psm = "You must specify a search string",
+                             #psm = "%s, %s" % (psm,ds),
+                             objects = items,
+                             is_manager = is_manager,
+                             )
+onlyreview = state and what == "review_state"
+items = []
+res = []
+portal_type_query = {'query':['Department','Course','CertificateCourse']}
+if onlyreview:
+    res = catalog(portal_type=portal_type_query,
+                  review_state=state)
+elif what == "student_id":
+    res = catalog(portal_type='Student',
+                  id = term.strip())
+elif what == "jamb_id":
+    res = catalog(portal_type='StudentApplication',
+                  SearchableText="%s*" % term.strip().lower())
+elif what == "matric_no":
+    res = catalog(portal_type='StudentClearance',
+                  SearchableText="%s*" % term.strip().lower())
+elif what == "name":
+    res = catalog(portal_type=portal_type_query,
+                  SearchableText="%s*" % term.strip())
+if res:
+    for r in res:
+        row = {}
+        if r.portal_type in ("StudentApplication","StudentPersonal"):
+            items.append(r.getObject().aq_parent)
+        else:
+            items.append(r.getObject())
+objects = []
+if items:
+    for item in items:
+        objects.append(context.getStudentInfo(item))
+return context.academics_search_view(rendered = rend,
+                             psm = "%d matching objects found" % len(items),
+                             #psm = "%s, %s" % (psm,ds),
+                             objects = objects,
+                             is_manager = is_manager,
+                             )
