- Timestamp:
- 19 Mar 2007, 18:57:54 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/uli/skins/waeup_student/change_password.py
r1527 r1593 14 14 current = DateTime.DateTime() 15 15 #pr = context.portal_registration 16 logger = logging.getLogger('S tudent.change_password')16 logger = logging.getLogger('Skins.change_password') 17 17 validate = request.has_key("change_password") 18 18 students_dir = context.portal_directories.students … … 24 24 requested_id = context.getStudentId() 25 25 if requested_id and not context.isStaff() and member_id != requested_id: 26 logger.info(' "%s", "tried to access", "%s"' % (member_id,requested_id))26 logger.info('%s tried to access %s' % (member_id,requested_id)) 27 27 return None 28 28 elif context.isStaff(): … … 74 74 args['__ac_name'] = student_id 75 75 args['__ac_password'] = password 76 logger.info('%s changed password from %s to %s' % (member_id,old_password,password)) 76 77 from urllib import urlencode 77 78 url = "%s/logged_in?%s" % (context.absolute_url(),urlencode(args))
Note: See TracChangeset for help on using the changeset viewer.