Changeset 1606 for WAeUP_SRP


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

fix action_after_validate

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

Legend:

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

    r1600 r1606  
    7070psm = "You successfully added course %s!" % course_id
    7171args['portal_status_message'] = psm
    72 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     72if action_after_validate:
     73    url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     74else:
     75    url = context.absolute_url() + '?' + urlencode(args)
    7376return REQUEST.RESPONSE.redirect(url)
    7477
  • WAeUP_SRP/trunk/skins/waeup_student/delete_course_result.py

    r1600 r1606  
    3838args = {}
    3939args['portal_status_message'] = message
    40 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     40
     41if action_after_validate:
     42    url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     43else:
     44    url = context.absolute_url() + '?' + urlencode(args)
    4145if REQUEST is not None:
    4246    return REQUEST.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/refresh_level.py

    r1592 r1606  
    112112psm = "Course list updated!"
    113113args['portal_status_message'] = psm
    114 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     114if action_after_validate:
     115    url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     116else:
     117    url = context.absolute_url() + '?' + urlencode(args)
    115118return REQUEST.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/register_courses.py

    r1591 r1606  
    1919        pass
    2020
    21 from urllib import urlencode       
     21from urllib import urlencode
    2222
    2323request = context.REQUEST
     
    4747psm = "You successfully submitted your course list!"
    4848args['portal_status_message'] = psm
    49 url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     49if action_after_validate:
     50    url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     51else:
     52    url = context.absolute_url() + '?' + urlencode(args)
    5053return REQUEST.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/reject_courses.py

    r1590 r1606  
    4646args['continue'] = action_after_validate
    4747args['portal_status_message'] = psm
    48 url = context.absolute_url() + '/' + action_after_reject + '?' + urlencode(args)
     48if action_after_validate:
     49    url = context.absolute_url() + '/' + action_after_validate + '?' + urlencode(args)
     50else:
     51    url = context.absolute_url() + '?' + urlencode(args)
    4952return REQUEST.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1598 r1606  
    113113                       type="submit" name="register_courses:method"
    114114                       class="context" value="Submit" />
     115                       
     116                <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
     117                       tal:attributes="value string:study_level_view"/>                         
     118                       
    115119            </td>
    116120          </tr>
Note: See TracChangeset for help on using the changeset viewer.