Ignore:
Timestamp:
22 Jun 2007, 19:56:52 (17 years ago)
Author:
Henrik Bettermann
Message:

members_search.xml: add groups to layout table (select widget was not visible)

interswitch_cb.py: the logger must be called Skins.interswitch_cb.py
payments_view.pt: some table design changes

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/interswitch_cb.py

    r1944 r1948  
    1 ## Script (Python) "epayment_cb"
     1## Script (Python) "interswitch_cb"
    22##bind container=container
    33##bind context=context
     
    1818        pass
    1919import logging
    20 logger = logging.getLogger('Skins.epayment_cb')
     20logger = logging.getLogger('Skins.interswitch_cb')
    2121from AccessControl import Unauthorized
    2222import DateTime
     
    5151for rc,pdk in resp_codes:
    5252    pd[pdk] = request.get(rc,'')
    53 if pd['resp_code'] == '00' and len(pd['resp_approved_amount']) > 4: 
     53if pd['resp_code'] == '00' and len(pd['resp_approved_amount']) > 4:
    5454    pd['resp_approved_amount'] = pd['resp_approved_amount'][:-2]
    5555else:
    5656    pd['resp_approved_amount'] = '0'
    57    
     57
    5858review_state = wftool.getInfoFor(context,'review_state',None)
    5959if pd['resp_code'] == '' and review_state == 'opened':
     
    8080except:
    8181    logger.info('%s no workflow action close' % student_id)
    82        
     82
    8383
    8484return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt

    r1946 r1948  
    2626            <th>Description, Amount, Date</th>
    2727            <th>Response</th>
    28             <th>Transactioncode</th>
     28            <th>Transaction Code</th>
    2929          </tr>
    3030          <tr tal:repeat="row rows"
    3131              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    3232            <td tal:attributes="class string:${row/confirmed}">
    33               <a target="slip" href="" tal:attributes="href string:${context/absolute_url}/${row/id}/payment_receipt"
     33              <a style="white-space:normal"  target="slip" href="" tal:attributes="href string:${context/absolute_url}/${row/id}/payment_receipt"
    3434                 onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
    3535                <strong tal:content="row/title" /></a>
    3636            </td>
    37             <td tal:content="row/resp_desc" />
     37            <td style="white-space:normal" tal:content="row/resp_desc" />
    3838            <td tal:content="row/trans_ref" />
    3939            <td>
     
    4242                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );"
    4343                 >
    44                 [approve payment]
     44                [approve]
    4545              </a>             
    4646            </td>
    47             <td tal:condition="row/is_requeryable">
    48               <a tal:condition="python:1"
     47            <td>
     48              <a tal:condition="row/is_requeryable"
    4949                 tal:attributes="href row/href;
    5050                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
    5151                 >
    52                 [requery payment]
     52                [requery]
    5353              </a>             
    5454            </td>
Note: See TracChangeset for help on using the changeset viewer.