Changeset 4033 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 30 Mar 2009, 21:14:56 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py
r4001 r4033 30 30 students_object = context.portal_url.getPortalObject().campus.students 31 31 student = getattr(students_object, brain.id) 32 app_obj = student.application.getContent() 33 d['email'] = getattr(app_obj, 'app_email', '') 34 32 try: 33 app_obj = student.application.getContent() 34 d['email'] = getattr(app_obj, 'app_email', '') 35 except: 36 d['email'] = 'not accessible' 35 37 return d -
WAeUP_SRP/trunk/skins/waeup_student/lecturer_course_edit.py
r3820 r4033 32 32 requested_id = context.getStudentId() 33 33 if not 'Lecturers' in groups and not context.isSectionOfficer(): 34 logger.info('%s tried to access course result of %s but is not a lecturer' % (member_id,requested_id))34 logger.info('%s tried to access course result record of %s but is not a lecturer' % (member_id,requested_id)) 35 35 return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 36 36 37 37 student_id = requested_id 38 student_record = context.students_catalog.getRecordByKey(student_id) 39 if student_record.review_state != 'courses_validated': 40 logger.info('%s tried to access non-validated course result record of %s' % (member_id,requested_id)) 41 return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 42 38 43 39 44 level_id = context.getId() … … 51 56 #set_trace() 52 57 if str(lecturer_id) != member_id and not context.isSectionOfficer(): 53 logger.info('%s tried to access course result %s of %s but is not a lecturer of this course' % (member_id,course_id,requested_id))58 logger.info('%s tried to access course result record %s of %s but is not a lecturer of this course' % (member_id,course_id,requested_id)) 54 59 return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 55 60
Note: See TracChangeset for help on using the changeset viewer.