Changeset 3786 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 25 Nov 2008, 20:19:24 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/course_result_list.py
r3781 r3786 14 14 request = context.REQUEST 15 15 setheader = request.RESPONSE.setHeader 16 17 mtool = context.portal_membership 18 if mtool.isAnonymousUser(): 19 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 20 member = mtool.getAuthenticatedMember() 21 member_id = str(member) 22 students_folder = context.portal_url.getPortalObject().campus.students 23 24 if not students_folder.isSectionOfficer(): 25 logger.info('%s tried to access %s' % (member_id,requested_id)) 26 return 'Not allowed' 27 28 29 16 30 cr = context.course_results 17 31 scat = context.students_catalog -
WAeUP_SRP/trunk/skins/waeup_student/lecturer_course_edit.py
r3752 r3786 77 77 data['key'] = object['key'] 78 78 context.course_results.modifyRecord(**data) 79 logger.info('%s edited course result data %s' % (student_id, course_id))79 logger.info('%s edited course result %s of %s' % (member_id,course_id,student_id)) 80 80 psm = 'psm_content_changed' 81 81 break
Note: See TracChangeset for help on using the changeset viewer.