Ignore:
Timestamp:
12 Jun 2012, 16:52:22 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement minimal webservice for demonstration purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r8682 r8698  
    2121from xml.dom.minidom import parseString
    2222import grok
     23from waeup.kofa.interfaces import IUniversity
    2324from waeup.kofa.browser.layout import KofaPage, UtilityView
    2425from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent
     
    2728from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment
    2829from waeup.aaue.applicants.interfaces import ICustomApplicantOnlinePayment
     30
     31# Kofa's webservice
     32
     33class KofaFeeRequest(grok.View):
     34    grok.context(IUniversity)
     35    grok.name('feerequest')
     36    grok.require('waeup.Public')
     37
     38    def update(self, PAYEE_ID=None):
     39        if PAYEE_ID == 'p1331829148308':
     40            self.output = 'PayeeName=John Tester&Amount=9500.00'
     41        else:
     42            self.output = '-1'
     43        return
     44
     45    def render(self):
     46        return self.output
     47
     48
     49# Requerying eTranzact payments
    2950
    3051#TERMINAL_ID = '0330000046'
Note: See TracChangeset for help on using the changeset viewer.