Changeset 1590


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

action strings added

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  
    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
  • WAeUP_SRP/trunk/skins/waeup_student/delete_course_result.py

    r1571 r1590  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=ids=[], REQUEST=None
     7##parameters=ids=[], REQUEST=None, action_after_reject=None, action_after_validate=None
    88##title=
    99##
     
    1515from Products.CMFCore.utils import getToolByName
    1616here = context
    17 
     17from urllib import urlencode
    1818import logging
    1919logger = logging.getLogger('Skins.delete_course_result')
     
    3535else:
    3636    message = 'portal_status_message=psm_select_at_least_one_document'
    37 
     37   
     38args['portal_status_message'] = message
     39url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
    3840if 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  
    191191                     class="context" value="Add Course"
    192192                     />
     193              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
     194                       tal:attributes="value string:external_study_level_view"/>                     
    193195            </td>               
    194196        </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
    22# $Id$
    33"""
     
    1818import logging
    1919logger = logging.getLogger('Skins.refresh_level')
     20
     21from urllib import urlencode
    2022
    2123current = DateTime.DateTime()
     
    100102session.set('in_progress','finished')
    101103logger.info('%s updated course list' % member)
    102 return
    103 return response.redirect("%s" % level.absolute_url())
     104
     105psm = "Course list updated!"
     106args['portal_status_message'] = psm
     107url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     108return REQUEST.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/register_courses.py

    r1589 r1590  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=student=None
     7##parameters=REQUEST=None, student=None, action_after_reject=None, action_after_validate=None
    88##title=
    99##
     
    1818    def set_trace():
    1919        pass
     20
     21from urllib import urlencode       
    2022
    2123request = context.REQUEST
     
    4143    return request.RESPONSE.redirect("%s" % context.absolute_url())
    4244logger.info('%s registered course list of %s' % (member_id,student_id))
    43 return request.RESPONSE.redirect("%s" % context.absolute_url())
     45
     46
     47psm = "You successfully submitted your course list!"
     48args['portal_status_message'] = psm
     49url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     50return REQUEST.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/reject_courses.py

    r1589 r1590  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=REQUEST, student=None, action_after_reject=None, action_after_validate=None
     7##parameters=REQUEST=None, student=None, action_after_reject=None, action_after_validate=None
    88##title=
    99##
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1588 r1590  
    198198                     class="context" value="Add Course"
    199199                     />
     200              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
     201                       tal:attributes="value string:/study_level_view"/>                       
    200202            </td>               
    201203        </table>
Note: See TracChangeset for help on using the changeset viewer.