Index: WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py	(revision 740)
+++ WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py	(revision 741)
@@ -20,4 +20,5 @@
 path_info = request.get('PATH_INFO').split('/')
 roles = member.getRoles()
+
 info = {}
 info['is_manager'] = context.isManager()
@@ -25,15 +26,16 @@
 member_id = str(member)
 if student is None:
-    if context.isManager() and 'students' in context.getPhysicalPath():
-        if context.portal_type == 'Student':
-            student_id = context.getId()
-        elif context.aq_parent.portal_type == 'Student':
-            student_id = context.aq_parent.getId()
-        elif context.aq_parent.aq_parent.portal_type == 'Student':
-            student_id = context.aq_parent.aq_parent.getId()
-        elif context.aq_parent.aq_parent.aq_parent.portal_type == 'Student':
-            student_id = context.aq_parent.aq_parent.aq_parent.getId()
-        else:
-            student_id = member_id
+    if context.isManager() and 'students' in path_info:
+        student_id = path_info[path_info.index('students')+1]
+##        if context.portal_type == 'Student':
+##            student_id = context.getId()
+##        elif context.aq_parent.portal_type == 'Student':
+##            student_id = context.aq_parent.getId()
+##        elif context.aq_parent.aq_parent.portal_type == 'Student':
+##            student_id = context.aq_parent.aq_parent.getId()
+##        elif context.aq_parent.aq_parent.aq_parent.portal_type == 'Student':
+##            student_id = context.aq_parent.aq_parent.aq_parent.getId()
+##        else:
+##            student_id = member_id
     else:
         student_id = member_id
