Changeset 3786
- Timestamp:
- 25 Nov 2008, 20:19:24 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Accommodation.py
r3784 r3786 72 72 for floor in range(1,int(hall_doc.nr_of_floors)+1): 73 73 for room in range(1,int(hall_doc.rooms_per_floor)+1): 74 for bed in 'ABCDEFGH '[:int(hall_doc.beds_per_room)]:74 for bed in 'ABCDEFGHIKLMNOPQRSTUVWXYZ'[:int(hall_doc.beds_per_room)]: 75 75 room_nr = floor*100 + room 76 76 bt = 'all' -
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.