Changeset 1584 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
19 Mar 2007, 11:47:33 (18 years ago)
Author:
Henrik Bettermann
Message:

direct link to level object

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/external_study_level_view.pt

    r1582 r1584  
    167167                <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
    168168                       class="context" value="Reject" />
     169                       
     170                <input type="hidden" name="redir" type="text" id="redir"
     171                       tal:attributes="value string:/external_study_level_view"/>                       
    169172
    170173            </td>
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1571 r1584  
    174174                <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
    175175                       class="context" value="Reject" />
     176                       
     177                <input type="hidden" name="redir" type="text" id="redir"
     178                       tal:attributes="value string:/study_level_view"/>                       
    176179
    177180            </td>
  • WAeUP_SRP/trunk/skins/waeup_student/validate_courses.py

    r1575 r1584  
    44##bind namespace=
    55##bind script=script
    6 ##bind subpath=traverse_subpath
     6##bind subpath=traverse_subpath,redir=None
    77##parameters=student=None
    88##title=
     
    2929student = getattr(students_folder,context.getStudentId())
    3030wftool.doActionFor(student,'validate_courses')
    31 logger.info('%s validated course list of %s' % (member,student.getId()))       
     31logger.info('%s validated course list of %s' % (member,student.getId()))
    3232
    3333psm = 'portal_status_message=Course list validated!'
    34 url = context.absolute_url() + '?' + psm
     34url = context.absolute_url() + redir + '?' + psm
    3535return request.RESPONSE.redirect(url)
    3636
Note: See TracChangeset for help on using the changeset viewer.