Changeset 1595 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
19 Mar 2007, 21:42:40 (18 years ago)
Author:
Henrik Bettermann
Message:

for testing on demo client

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

Legend:

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

    r1575 r1595  
    2828      <input type="hidden" name="probtype" type="text" id="probtype"
    2929             tal:attributes="value subject"/>     
     30      <input type="hidden" name="action" type="text" id="action"
     31             tal:attributes="value continue"/> 
    3032             
    3133      <table width="100%" border="0" cellspacing="5" cellpadding="0">
  • WAeUP_SRP/trunk/skins/waeup_student/mail2student.py

    r1575 r1595  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=co_name=None,co_email=None,student_email=None,probtype=None,commt=None
     7##parameters=co_name=None,co_email=None,student_email=None,probtype=None,commt=None, action=None
    88##title=
    99##
     
    2727#prop.email_from_address should be used for To:
    2828REQUEST = context.REQUEST
    29 url_tuple = REQUEST.HTTP_REFERER.split('?')
    30 if len(url_tuple) == 2:
    31     url_tuple[1] ='portal_status_message=Your message has been sent!'
    32 else:
    33     url_tuple.append('portal_status_message=Your message has been sent!')
    34 redirect_url = "?".join(url_tuple)
    35 REQUEST.set('rurl', redirect_url) # to see the result in the error log
     29
     30#url_tuple = REQUEST.HTTP_REFERER.split('?')
     31#if len(url_tuple) == 2:
     32#    url_tuple[1] ='portal_status_message=Your message has been sent!'
     33#else:
     34#    url_tuple.append('portal_status_message=Your message has been sent!')
     35#redirect_url = "?".join(url_tuple)
     36#REQUEST.set('rurl', redirect_url) # to see the result in the error log
     37
    3638msg = message % (
    3739     co_name,
     
    4749mhost.send(msg)
    4850
    49 REQUEST = context.REQUEST
    50 RESPONSE = REQUEST.RESPONSE
    5151
    52 RESPONSE.redirect(redirect_url)
     52#REQUEST = context.REQUEST
     53#RESPONSE = REQUEST.RESPONSE
     54#RESPONSE.redirect(redirect_url)
     55
     56args = {}
     57psm = "Your message has been sent!"
     58args['portal_status_message'] = psm
     59url = context.absolute_url() + '/' + action + '?' + urlencode(args)
     60return REQUEST.RESPONSE.redirect(url)
     61
     62
     63
     64
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1590 r1595  
    142142                <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
    143143                       class="context" value="Reject" />
     144                       
     145                <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
     146                       tal:attributes="value string:/study_level_view"/>                         
     147                <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
     148                       tal:attributes="value string:/contact_student_form"/>                         
    144149
    145150            </td>
Note: See TracChangeset for help on using the changeset viewer.