Changeset 14796


Ignore:
Timestamp:
14 Aug 2017, 06:12:04 (7 years ago)
Author:
Henrik Bettermann
Message:

Construct POST action.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/applicantsbrowser.py

    r14793 r14796  
    226226                )
    227227
    228     action = 'http://www.remitademo.net/remita/ecomm/finalize.reg'
     228    @property
     229    def action(self):
     230        if HTTPS:
     231            return 'https://' + HOST + '/remita/ecomm/finalize.reg'
     232        return 'http://' + HOST + '/remita/ecomm/finalize.reg'
    229233
    230234    def init_update(self):
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py

    r14793 r14796  
    234234                )
    235235
    236     action = 'http://www.remitademo.net/remita/ecomm/finalize.reg'
     236    @property
     237    def action(self):
     238        if HTTPS:
     239            return 'https://' + HOST + '/remita/ecomm/finalize.reg'
     240        return 'http://' + HOST + '/remita/ecomm/finalize.reg'
    237241
    238242    def init_update(self):
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/tests.py

    r14793 r14796  
    202202        self.assertTrue('<input name="rrr" type="hidden" value="%s">' % self.rrr
    203203            in self.browser.contents)
     204        self.assertTrue(
     205            'action="http://www.remitademo.net/remita/ecomm/finalize.reg"'
     206            in self.browser.contents)
    204207        self.assertEqual(self.payment.r_pay_reference, self.rrr)
    205208        self.assertEqual(self.payment.r_company, 'remita')
     
    212215            ' - K1000000 - RRR retrieved: %s, ServiceTypeId: %s'
    213216            % (self.rrr, self.serviceTypeId) in logcontent)
     217
    214218        # Means of testing end here.
    215219        return
Note: See TracChangeset for help on using the changeset viewer.