Changeset 1596 for WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/getAccommodationInfo.py
- Timestamp:
- 19 Mar 2007, 21:45:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/getAccommodationInfo.py
r1474 r1596 13 13 """ 14 14 import logging 15 logger = logging.getLogger('S tudent.Accommodation.Info')15 logger = logging.getLogger('Skins.getAccommodationInfo') 16 16 import DateTime 17 17 … … 29 29 requested_id = context.getStudentId() 30 30 if requested_id and not context.isStaff() and member_id != requested_id: 31 logger.info(' "%s", "tried to access", "%s"' % (member_id,requested_id))31 logger.info('%s tried to access %s' % (member_id,requested_id)) 32 32 return None 33 33 elif context.isStaff(): … … 37 37 res = context.students_catalog(id=student_id) 38 38 if len(res) != 1: 39 logger.info(' "%s","not found in students_catalog"')39 logger.info('%s not found in students_catalog' % student_id) 40 40 return None 41 41
Note: See TracChangeset for help on using the changeset viewer.