Index: /WAeUP_SRP/fceokene/waeup_custom/getStudyLevelInfo.py
===================================================================
--- /WAeUP_SRP/fceokene/waeup_custom/getStudyLevelInfo.py	(revision 3104)
+++ /WAeUP_SRP/fceokene/waeup_custom/getStudyLevelInfo.py	(revision 3105)
@@ -11,13 +11,4 @@
 """
 return Info about the Studylevel
-"""
-
-wf = context.portal_workflow
-mtool = context.portal_membership
-if mtool.isAnonymousUser():
-    return None
-member = mtool.getAuthenticatedMember()
-member_id = str(member)
-
 try:
     from Products.zdb import set_trace
@@ -25,11 +16,15 @@
     def set_trace():
         pass
+"""
 
+info = context.waeup_tool.getAccessInfo(context)
+student_id = info['student_id']
+if student_id is None:
+    return None
 
-# from Products.AdvancedQuery import Eq, Between, Le,In
-# try:
-#     aq_portal = context.portal_catalog.evalAdvancedQuery
-# except:
-#     aq_portal = context.portal_catalog_real.evalAdvancedQuery
+mtool = context.portal_membership
+member = mtool.getAuthenticatedMember()
+member_id = str(member)
+
 course_results = context.course_results
 request = context.REQUEST
@@ -38,14 +33,12 @@
 logger = logging.getLogger('Skins.getStudyLevelInfo')
 
-info = {}
-
-student_id = context.getStudentId()
 level_id  =  context.getId()
 level_doc = info['doc'] = context.getContent()
 
-info['is_so'] = is_so = context.isSectionOfficer()
-info['is_student'] = is_student = context.isStudent()
+info['is_so'] = is_so = info['is_sectionofficer']
+#info['is_student'] = is_student = context.isStudent()
 info['is_ca'] = is_ca = context.isCourseAdviser()
-info['student'] = student = context.students_catalog(id=student_id)[0]
+#info['student'] = student = context.students_catalog(id=student_id)[0]
+info['student'] = student = context.students_catalog.getRecordByKey(student_id)
 info['review_state'] = review_state = student.review_state
 is_current_level = level_id == student.level
@@ -60,5 +53,5 @@
 
 info['show_check_boxes'] =  (is_ca and school_fee_paid and is_current_level and not has_verdict) or\
-                            (is_student and school_fee_paid and is_current_level and not has_verdict) or\
+                            (info['is_student'] and school_fee_paid and is_current_level and not has_verdict) or\
                             (is_so and is_current_level and not has_verdict)
 
@@ -92,6 +85,5 @@
 
 max_credits = 58
-#if context.getId() == student.end_level:
-#    max_credits = 51
+info['without_score'] = without_score = False
 
 #end customization
@@ -104,6 +96,4 @@
 if gpa and total_credits:
     info['gpa'] = "%4.2f" % (float(gpa)/int(total_credits))
-
-
 
 # carry_overs.sort(cmp_semester_id)
