Changeset 3565
- Timestamp:
- 8 Jul 2008, 21:05:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudentFolderInfo.py
r3479 r3565 36 36 37 37 member_id = str(member) 38 #from Products.zdb import set_trace;set_trace() 39 # info = {} 40 # is_student = info['is_student'] = context.isStudent() 41 # is_staff = info['is_staff'] = context.isStaff() 42 # is_sectionofficer = info['is_sectionofficer'] = context.isSectionOfficer() 43 # while True: 44 # if mtool.isAnonymousUser(): 45 # return None 46 # requested_id = context.getStudentId() 47 # if not is_student and requested_id: 48 # student_id = requested_id 49 # break 50 # if member_id != requested_id: 51 # logger.info('%s tried to access %s' % (member_id,requested_id)) 52 # student_id = member_id 53 # mtool.assertViewable(context) 54 # break 55 # student_id = member_id 56 # break 38 57 39 info = context.waeup_tool.getAccessInfo(context) 58 40 student_id = info['student_id'] … … 75 57 76 58 info['session'] = False 77 if student_record.matric_no :59 if student_record.matric_no and 'uniben' in context.portal_url.getPortalPath(): 78 60 res = context.results_import(matric_no = student_record.matric_no) 79 61 if res:
Note: See TracChangeset for help on using the changeset viewer.