Ignore:
Timestamp:
19 Mar 2007, 16:00:15 (18 years ago)
Author:
Henrik Bettermann
Message:

action strings added

File:
1 edited

Legend:

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

    r1571 r1590  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=
     7##parameters=REQUEST=None, action_after_validate=None
    88##title=
    99##
     
    2222    def set_trace():
    2323        pass
    24 request = context.REQUEST
     24#request = context.REQUEST
    2525course_cat = context.courses_catalog
    2626from Products.AdvancedQuery import Eq, Between, Le,In
     
    5757    return request.RESPONSE.redirect(url)
    5858
    59    
     59
    6060cr_id = context.invokeFactory('StudentCourseResult',course_id)
    6161#set_trace()
     
    6666args['course_id'] = course_id
    6767
    68 logger.info('%s added StudentCourseResult object %s' % (member,course_id))   
     68logger.info('%s added StudentCourseResult object %s' % (member,course_id))
    6969
    70 from urllib import urlencode
    71 url = "%s?%s" % (context.absolute_url(),urlencode(args))
    72 return request.RESPONSE.redirect(url)
     70psm = "You successfully added course %s!" course_id
     71args['portal_status_message'] = psm
     72url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     73return REQUEST.RESPONSE.redirect(url)
    7374
Note: See TracChangeset for help on using the changeset viewer.