Changeset 1303 for WAeUP_SRP


Ignore:
Timestamp:
15 Jan 2007, 17:17:11 (18 years ago)
Author:
joachim
Message:

add workflow transitions for online-payment.
don't display used scratchcard-pins.

Location:
WAeUP_SRP/trunk/skins
Files:
4 edited

Legend:

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

    r1246 r1303  
    1818request = context.REQUEST
    1919students = context.portal_url.getPortalObject().campus.students
    20 
     20wftool = context.portal_workflow
    2121student_id = context.getStudentId()
    2222if student_id is None:
     
    4141    pd[pdk] = request.get(rc)
    4242context.getContent().edit(mapping=pd)
     43wftool.doActionFor(student,'pay_school_fee')
     44wftool.doActionFor(context,'close')
     45
    4346return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py

    r1286 r1303  
    3030                                     id = sbrain.course)
    3131if not res:
    32     logger.info('"%s","certificate not found", "%s"' % (student_id,course))
     32    logger.info('"%s","certificate not found", "%s"' % (student_id,sbrain.course))
    3333    prefix = ""
    3434else:
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py

    r1257 r1303  
    1717import DateTime
    1818request = context.REQUEST
     19wftool = context.portal_workflow
    1920students = context.portal_url.getPortalObject().campus.students
    2021
     
    6465payments.invokeFactory('Payment', p_id)
    6566payment = getattr(payments,p_id)
     67wftool.doActionFor(payment,'open')
    6668d = {}
    6769d.update(info)
    6870#from Products.zdb import set_trace;set_trace()
    6971payment.getContent().edit(mapping=d)
     72wftool.doActionFor(payment,'close')
     73wftool.doActionFor(student,'pay_school_fee')
    7074info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id)
    7175if context.portal_url().find('uniben-demo.waeup.org') >-1 or\
     
    9397url = info['action'] + "?" + urlencode(args)
    9498request.RESPONSE.redirect(url)
    95 
  • WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt

    r1120 r1303  
    2828        <span tal:replace="info/batch_doc/no_of_pins" /></h3>
    2929        <span tal:replace="structure rendered" />
    30         <table>
     30        <table tal:condition="nothing">
    3131          <tr tal:repeat="pin info/used">
    3232            <td tal:content="python:path('repeat/pin/index')+1" />
Note: See TracChangeset for help on using the changeset viewer.