- Timestamp:
- 27 Dec 2006, 21:51:27 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r1082 r1140 141 141 rec = records[0] 142 142 self.modifyRecord(bed=rec.bed,student=student_id) 143 s_logger = logging.getLogger('Accommodation. Reservation')144 s_logger.info(" Student%s reserved bed %s" % (student_id,rec.bed))143 s_logger = logging.getLogger('Accommodation.SearchAndReserveBed') 144 s_logger.info("%s reserved bed %s" % (student_id,rec.bed)) 145 145 return 1,rec.bed 146 146 -
WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py
r1133 r1140 11 11 info = context.getAccommodationInfo() 12 12 13 import logging 14 logger = logging.getLogger('Student.Accommodation.Reserve') 15 16 #if info is None: 17 # return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 18 13 19 if info is None: 14 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 20 member_id = str(context.portal_membership.getAuthenticatedMember()) 21 logger.info('"%s","tried to reserve accommodation"' % (member_id)) 22 return context.REQUEST.RESPONSE.redirect("%s/srp_invalid_access" % context.portal_url()) 15 23 16 24 student = info['student']
Note: See TracChangeset for help on using the changeset viewer.