Ignore:
Timestamp:
19 Mar 2007, 22:28:18 (18 years ago)
Author:
Henrik Bettermann
Message:

logging messages extended

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py

    r1592 r1600  
    5454    #args['error'] = err
    5555    args['portal_status_message'] = err
    56     url = "%s?%s" % (context.absolute_url(),urlencode(args))
     56    url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
    5757    return request.RESPONSE.redirect(url)
    5858
     
    6666args['course_id'] = course_id
    6767
    68 logger.info('%s added StudentCourseResult object %s' % (member,course_id))
     68logger.info('%s added StudentCourseResult object %s for %s' % (member,course_id,context.getStudentId()))
    6969
    70 args = {}
    7170psm = "You successfully added course %s!" % course_id
    7271args['portal_status_message'] = psm
  • WAeUP_SRP/trunk/skins/waeup_student/delete_course_result.py

    r1591 r1600  
    3131    if real_ids:
    3232        context.manage_delObjects(real_ids)
    33         logger.info('%s deleted StudentCourseResult object %s' % (member,id))
     33        logger.info('%s deleted StudentCourseResult object %s for %s' % (member,id,context.getStudentId()))
    3434        message = 'psm_item(s)_deleted'
    3535else:
    3636    message = 'psm_select_at_least_one_document'
    37    
     37
    3838args = {}
    3939args['portal_status_message'] = message
    4040url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
    4141if REQUEST is not None:
    42     return REQUEST.RESPONSE.redirect(url)   
     42    return REQUEST.RESPONSE.redirect(url)
Note: See TracChangeset for help on using the changeset viewer.