Changeset 1590
- Timestamp:
- 19 Mar 2007, 16:00:15 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 7 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 -
WAeUP_SRP/trunk/skins/waeup_student/delete_course_result.py
r1571 r1590 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=ids=[], REQUEST=None 7 ##parameters=ids=[], REQUEST=None, action_after_reject=None, action_after_validate=None 8 8 ##title= 9 9 ## … … 15 15 from Products.CMFCore.utils import getToolByName 16 16 here = context 17 17 from urllib import urlencode 18 18 import logging 19 19 logger = logging.getLogger('Skins.delete_course_result') … … 35 35 else: 36 36 message = 'portal_status_message=psm_select_at_least_one_document' 37 37 38 args['portal_status_message'] = message 39 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args) 38 40 if REQUEST is not None: 39 return REQUEST.RESPONSE.redirect( ret_url + '?' + message)41 return REQUEST.RESPONSE.redirect(url) -
WAeUP_SRP/trunk/skins/waeup_student/external_study_level_view.pt
r1588 r1590 191 191 class="context" value="Add Course" 192 192 /> 193 <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" 194 tal:attributes="value string:external_study_level_view"/> 193 195 </td> 194 196 </table> -
WAeUP_SRP/trunk/skins/waeup_student/refresh_level.py
r1571 r1590 1 ##parameters= 1 ##parameters=REQUEST=None, student=None, action_after_reject=None, action_after_validate=None 2 2 # $Id$ 3 3 """ … … 18 18 import logging 19 19 logger = logging.getLogger('Skins.refresh_level') 20 21 from urllib import urlencode 20 22 21 23 current = DateTime.DateTime() … … 100 102 session.set('in_progress','finished') 101 103 logger.info('%s updated course list' % member) 102 return 103 return response.redirect("%s" % level.absolute_url()) 104 105 psm = "Course list updated!" 106 args['portal_status_message'] = psm 107 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args) 108 return REQUEST.RESPONSE.redirect(url) -
WAeUP_SRP/trunk/skins/waeup_student/register_courses.py
r1589 r1590 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= student=None7 ##parameters=REQUEST=None, student=None, action_after_reject=None, action_after_validate=None 8 8 ##title= 9 9 ## … … 18 18 def set_trace(): 19 19 pass 20 21 from urllib import urlencode 20 22 21 23 request = context.REQUEST … … 41 43 return request.RESPONSE.redirect("%s" % context.absolute_url()) 42 44 logger.info('%s registered course list of %s' % (member_id,student_id)) 43 return request.RESPONSE.redirect("%s" % context.absolute_url()) 45 46 47 psm = "You successfully submitted your course list!" 48 args['portal_status_message'] = psm 49 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args) 50 return REQUEST.RESPONSE.redirect(url) -
WAeUP_SRP/trunk/skins/waeup_student/reject_courses.py
r1589 r1590 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=REQUEST , student=None, action_after_reject=None, action_after_validate=None7 ##parameters=REQUEST=None, student=None, action_after_reject=None, action_after_validate=None 8 8 ##title= 9 9 ## -
WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt
r1588 r1590 198 198 class="context" value="Add Course" 199 199 /> 200 <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" 201 tal:attributes="value string:/study_level_view"/> 200 202 </td> 201 203 </table>
Note: See TracChangeset for help on using the changeset viewer.