Changeset 1140 for WAeUP_SRP


Ignore:
Timestamp:
27 Dec 2006, 21:51:27 (18 years ago)
Author:
Henrik Bettermann
Message:

logging messages specified

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r1082 r1140  
    141141        rec = records[0]
    142142        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))
    145145        return 1,rec.bed
    146146
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r1133 r1140  
    1111info = context.getAccommodationInfo()
    1212
     13import logging
     14logger = 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
    1319if 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())
    1523
    1624student = info['student']
Note: See TracChangeset for help on using the changeset viewer.