Changeset 1476 for WAeUP_SRP/trunk
- Timestamp:
- 23 Feb 2007, 10:04:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/change_password.py
r1474 r1476 18 18 validate = request.has_key("change_password") 19 19 students_dir = context.portal_directories.students 20 mtool = context.portal_membership 21 member = mtool.getAuthenticatedMember() 22 member_id = str(member) 20 23 lt = context.portal_layouts 21 24 wt = context.waeup_tool 22 student_id = context.getStudentId() 25 requested_id = context.getStudentId() 26 if requested_id and not context.isStaff() and member_id != requested_id: 27 logger.info('"%s", "tried to access", "%s"' % (member_id,requested_id)) 28 return None 29 elif context.isStaff(): 30 student_id = requested_id 31 else: 32 student_id = member_id 23 33 res,psm,ds = lt.renderLayout(layout_id= 'student_change_password', 24 34 schema_id= 'student_change_password',
Note: See TracChangeset for help on using the changeset viewer.