Changeset 3744


Ignore:
Timestamp:
30 Oct 2008, 09:11:49 (16 years ago)
Author:
Henrik Bettermann
Message:

enable selecting session for gown hire

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/CHANGES.txt

    r3738 r3744  
    106106-----------------
    107107- allow transition 'pay_school_fee' by import
     108
     1091.20 (2008-10-30)
     110-----------------
     111- enable selecting session for gown hire
  • WAeUP_SRP/trunk/profiles/default/layouts/student_gown.xml

    r3736 r3744  
    1818    <property name="hidden_layout_modes"/>
    1919    <property name="hidden_readonly_layout_modes"/>
    20     <property name="prefix">GWN</property>
    2120  </widget>
     21  <widget name="session" meta_type="WAeUP Session Widget">
     22    <property name="title">Session</property>
     23    <property name="fields">
     24      <element value="session_id"/>
     25    </property>
     26    <property name="label">Session</property>
     27    <property name="label_edit">Session</property>
     28    <property name="readonly_layout_modes"/>
     29    <property name="hidden_layout_modes"/>
     30    <property name="hidden_readonly_layout_modes"/>
     31    <property name="vocabulary">unset</property>
     32    <property name="sorted">True</property>
     33  </widget> 
    2234  <table>
    2335    <row>
    2436      <cell name="pin"/>
    2537    </row>
     38    <row>
     39      <cell name="session"/>
     40    </row>   
    2641  </table>
    2742</object>
  • WAeUP_SRP/trunk/skins/waeup_epayment/request_gown.py

    r3736 r3744  
    3434student = getattr(students,student_id)
    3535student_record = context.students_catalog.getRecordByKey(student_id)
    36 session = context.getSessionId()
     36
     37#session = context.getSessionId()
    3738
    3839validate = request.has_key("cpsdocument_create_button")
     
    7778p_id = "p%s" % ds.get('pin_n')
    7879pin = str(ds.get('pin'))
     80session = str(ds.get('session'))
     81
     82#from Products.zdb import set_trace; set_trace()
     83
    7984try:
    8085    cost = context.portal_pins(pin="".join(pin.split('-')))[0].cost
     
    95100    info['type'] = 'sc'
    96101    info['status'] = 'paid'
    97     info['session_id'] = session[0]
     102    #info['session_id'] = session[0]
     103    info['session_id'] = session
    98104    info['item'] = ''
    99105    info['category'] = 'gown'
  • WAeUP_SRP/trunk/skins/waeup_epayment/request_gown_form.pt

    r3736 r3744  
    99
    1010        <span tal:condition="rendered_main">
    11           <h3>Hire Gown for Session <span tal:replace="session_str" />!</h3>
     11          <h3>Hire Gown!</h3>
    1212          <br />
    1313          <div tal:replace="structure rendered_main" />
Note: See TracChangeset for help on using the changeset viewer.