Changeset 1590 for WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py
- Timestamp:
- 19 Mar 2007, 16:00:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py
r1571 r1590 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= 7 ##parameters=REQUEST=None, action_after_validate=None 8 8 ##title= 9 9 ## … … 22 22 def set_trace(): 23 23 pass 24 request = context.REQUEST24 #request = context.REQUEST 25 25 course_cat = context.courses_catalog 26 26 from Products.AdvancedQuery import Eq, Between, Le,In … … 57 57 return request.RESPONSE.redirect(url) 58 58 59 59 60 60 cr_id = context.invokeFactory('StudentCourseResult',course_id) 61 61 #set_trace() … … 66 66 args['course_id'] = course_id 67 67 68 logger.info('%s added StudentCourseResult object %s' % (member,course_id)) 68 logger.info('%s added StudentCourseResult object %s' % (member,course_id)) 69 69 70 from urllib import urlencode 71 url = "%s?%s" % (context.absolute_url(),urlencode(args)) 72 return request.RESPONSE.redirect(url) 70 psm = "You successfully added course %s!" course_id 71 args['portal_status_message'] = psm 72 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args) 73 return REQUEST.RESPONSE.redirect(url) 73 74
Note: See TracChangeset for help on using the changeset viewer.